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

33 lines
899 B
Diff

diff -Naur a/configure.ac b/configure.ac
--- a/configure.ac 2014-02-18 09:32:10.436600000 +0400
+++ b/configure.ac 2014-02-18 09:32:12.215000000 +0400
@@ -4735,6 +4735,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 -Naur a/Makefile.pre.in b/Makefile.pre.in
--- a/Makefile.pre.in 2014-02-18 09:31:58.861400000 +0400
+++ b/Makefile.pre.in 2014-02-18 09:32:12.293000000 +0400
@@ -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 \