Files
MINGW-packages/mingw-w64-python3/0170-MINGW-add-srcdir-PC-to-CPPFLAGS.patch
2016-07-12 14:49:26 +03:00

21 lines
723 B
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:20:42.226800700 +0300
+++ Python-3.5.2/configure.ac 2016-07-12 14:20:44.334300700 +0300
@@ -5198,6 +5198,16 @@
THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
done
+case $host in
+ *-*-mingw*)
+ dnl Required for windows builds as Objects/exceptions.c require
+ dnl "errmap.h" from $srcdir/PC.
+ dnl Note we cannot use BASECPPFLAGS as autogenerated pyconfig.h
+ dnl has to be before customized located in ../PC.
+ CPPFLAGS="-I\$(srcdir)/PC $CPPFLAGS"
+ ;;
+esac
+
AC_SUBST(SRCDIRS)
SRCDIRS="Parser Grammar Objects Python Modules Mac Programs"
AC_MSG_CHECKING(for build directories)