Files
MINGW-packages/mingw-w64-python3/0330-MINGW-ignore-main-program-for-frozen-scripts.patch
2016-07-12 14:49:26 +03:00

33 lines
1.0 KiB
Diff

diff -Naur Python-3.5.2-orig/configure.ac Python-3.5.2/configure.ac
--- Python-3.5.2-orig/configure.ac 2016-07-12 14:21:10.955300700 +0300
+++ Python-3.5.2/configure.ac 2016-07-12 14:21:13.172300700 +0300
@@ -5295,6 +5295,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 Programs"
case $host in
diff -Naur Python-3.5.2-orig/Makefile.pre.in Python-3.5.2/Makefile.pre.in
--- Python-3.5.2-orig/Makefile.pre.in 2016-07-12 14:21:10.970800700 +0300
+++ Python-3.5.2/Makefile.pre.in 2016-07-12 14:21:13.220800700 +0300
@@ -377,7 +377,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 \