Skip to content

Commit 02755c9

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

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
@@ -6474,6 +6474,16 @@ do
64746474
THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
64756475
done
64766476

6477+
case $host in
6478+
*-*-mingw*)
6479+
dnl Required for windows builds as Objects/exceptions.c require
6480+
dnl "errmap.h" from $srcdir/PC.
6481+
dnl Note we cannot use BASECPPFLAGS as autogenerated pyconfig.h
6482+
dnl has to be before customized located in ../PC.
6483+
CPPFLAGS="-I\$(srcdir)/PC $CPPFLAGS"
6484+
;;
6485+
esac
6486+
64776487
AC_SUBST(SRCDIRS)
64786488
SRCDIRS="\
64796489
Modules \
@@ -6495,6 +6505,10 @@ SRCDIRS="\
64956505
Python \
64966506
Python/frozen_modules \
64976507
Python/deepfreeze"
6508+
case $host in
6509+
*-*-mingw*) SRCDIRS="$SRCDIRS PC";;
6510+
esac
6511+
64986512
AC_MSG_CHECKING(for build directories)
64996513
for dir in $SRCDIRS; do
65006514
if test ! -d $dir; then

0 commit comments

Comments
 (0)