Skip to content

Commit 0a64353

Browse files
Alexpuxnaveen521kk
authored andcommitted
Add PC/ to CPPFLAGS and to SRCDIRS on Mingw
Co-authored-by: Naveen M K <[email protected]>
1 parent 7e18010 commit 0a64353

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

configure.ac

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6470,6 +6470,16 @@ do
64706470
THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
64716471
done
64726472

6473+
case $host in
6474+
*-*-mingw*)
6475+
dnl Required for windows builds as Objects/exceptions.c require
6476+
dnl "errmap.h" from $srcdir/PC.
6477+
dnl Note we cannot use BASECPPFLAGS as autogenerated pyconfig.h
6478+
dnl has to be before customized located in ../PC.
6479+
CPPFLAGS="-I\$(srcdir)/PC $CPPFLAGS"
6480+
;;
6481+
esac
6482+
64736483
AC_SUBST(SRCDIRS)
64746484
SRCDIRS="\
64756485
Modules \
@@ -6491,6 +6501,10 @@ SRCDIRS="\
64916501
Python \
64926502
Python/frozen_modules \
64936503
Python/deepfreeze"
6504+
case $host in
6505+
*-*-mingw*) SRCDIRS="$SRCDIRS PC";;
6506+
esac
6507+
64946508
AC_MSG_CHECKING(for build directories)
64956509
for dir in $SRCDIRS; do
64966510
if test ! -d $dir; then

0 commit comments

Comments
 (0)