26 lines
825 B
Diff
26 lines
825 B
Diff
diff -Naur Python-3.7.0-orig/configure.ac Python-3.7.0/configure.ac
|
|
--- Python-3.7.0-orig/configure.ac 2018-07-12 10:20:51.934701900 +0300
|
|
+++ Python-3.7.0/configure.ac 2018-07-12 10:20:52.262302500 +0300
|
|
@@ -5468,8 +5468,21 @@
|
|
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 Objects Python Modules Programs"
|
|
+case $host in
|
|
+ *-*-mingw*) SRCDIRS="$SRCDIRS PC";;
|
|
+esac
|
|
AC_MSG_CHECKING(for build directories)
|
|
for dir in $SRCDIRS; do
|
|
if test ! -d $dir; then
|