Files
MINGW-packages/mingw-w64-python3/0330-MINGW-ignore-main-program-for-frozen-scripts.patch

33 lines
1017 B
Diff

diff -Naur Python-3.7.0-orig/configure.ac Python-3.7.0/configure.ac
--- Python-3.7.0-orig/configure.ac 2018-07-12 10:21:08.954331800 +0300
+++ Python-3.7.0/configure.ac 2018-07-12 10:21:09.313132400 +0300
@@ -5533,6 +5533,16 @@
;;
esac
+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="Parser Objects Python Modules Programs"
case $host in
diff -Naur Python-3.7.0-orig/Makefile.pre.in Python-3.7.0/Makefile.pre.in
--- Python-3.7.0-orig/Makefile.pre.in 2018-07-12 10:21:08.969931800 +0300
+++ Python-3.7.0/Makefile.pre.in 2018-07-12 10:21:09.328732500 +0300
@@ -333,7 +333,7 @@
Python/codecs.o \
Python/dynamic_annotations.o \
Python/errors.o \
- Python/frozenmain.o \
+ @PYTHON_OBJS_FROZENMAIN@ \
Python/future.o \
Python/getargs.o \
Python/getcompiler.o \