File mingw-python3_frozenmain.patch of Package mingw-python3
diff -rupN --no-dereference Python-3.11.8/configure.ac Python-3.11.8-new/configure.ac --- Python-3.11.8/configure.ac 2024-02-16 22:21:27.409344948 +0100 +++ Python-3.11.8-new/configure.ac 2024-02-16 22:21:27.726345254 +0100 @@ -6411,6 +6411,16 @@ do THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" done +dnl Python interpreter main program for frozen scripts +AC_SUBST(PYTHON_OBJS_FROZENMAIN) +PYTHON_OBJS_FROZENMAIN="Python/frozenmain.o" +case $host in + *-*-mingw*) + dnl 'PC/frozen_dllmain.c' - not yet + PYTHON_OBJS_FROZENMAIN= + ;; +esac + AC_SUBST(SRCDIRS) SRCDIRS="\ Modules \ diff -rupN --no-dereference Python-3.11.8/Makefile.pre.in Python-3.11.8-new/Makefile.pre.in --- Python-3.11.8/Makefile.pre.in 2024-02-16 22:21:27.417344956 +0100 +++ Python-3.11.8-new/Makefile.pre.in 2024-02-16 22:21:27.727345255 +0100 @@ -390,7 +390,7 @@ PYTHON_OBJS= \ Python/dynamic_annotations.o \ Python/errors.o \ Python/frame.o \ - Python/frozenmain.o \ + @PYTHON_OBJS_FROZENMAIN@ \ Python/future.o \ Python/getargs.o \ Python/getcompiler.o \