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

33 lines
897 B
Diff

diff -urN a/configure.ac b/configure.ac
--- a/configure.ac 2014-10-11 22:41:16.730102500 +0100
+++ b/configure.ac 2014-10-11 22:41:19.231245500 +0100
@@ -4756,6 +4756,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 Grammar Objects Python Modules Mac"
case $host in
diff -urN a/Makefile.pre.in b/Makefile.pre.in
--- a/Makefile.pre.in 2014-10-11 22:41:16.292077400 +0100
+++ b/Makefile.pre.in 2014-10-11 22:41:19.232245600 +0100
@@ -308,7 +308,7 @@
Python/codecs.o \
Python/errors.o \
Python/frozen.o \
- Python/frozenmain.o \
+ @PYTHON_OBJS_FROZENMAIN@ \
Python/future.o \
Python/getargs.o \
Python/getcompiler.o \