Files
MINGW-packages/mingw-w64-python3/0330-MINGW-ignore-main-program-for-frozen-scripts.patch
2014-03-18 00:25:28 +04:00

33 lines
912 B
Diff

diff -Naur a/configure.ac b/configure.ac
--- a/configure.ac 2014-03-18 00:06:29.539400000 +0400
+++ b/configure.ac 2014-03-18 00:06:31.614200000 +0400
@@ -4918,6 +4918,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-03-18 00:06:29.555000000 +0400
+++ b/Makefile.pre.in 2014-03-18 00:06:31.614200000 +0400
@@ -357,7 +357,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 \