From: Xavier de Gaye Date: Sat, 30 Jul 2016 09:28:35 +0000 (+0200) Subject: Issue #27453: CPP invocation in configure must use CPPFLAGS. X-Git-Tag: v3.6.0a4~91^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a32bdfaa7494bfc172b04bdb1c8159978af8d42;p=thirdparty%2FPython%2Fcpython.git Issue #27453: CPP invocation in configure must use CPPFLAGS. Patch by Chi Hsuan Yen. --- diff --git a/Misc/ACKS b/Misc/ACKS index a4a4cdc3cb47..150d37a3a322 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -1663,3 +1663,4 @@ Gennadiy Zlobin Doug Zongker Peter Åstrand evilzero +Chi Hsuan Yen diff --git a/Misc/NEWS b/Misc/NEWS index 243f1263ecad..6b2b41921fec 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -145,6 +145,9 @@ Windows Build ----- +- Issue #27453: CPP invocation in configure must use CPPFLAGS. Patch by + Chi Hsuan Yen. + - Issue #27490: Do not build pgen when cross-compiling. Patch by Thomas Perl. diff --git a/configure b/configure index f0cf515c28d2..bb89a5a059bc 100755 --- a/configure +++ b/configure @@ -5369,7 +5369,7 @@ cat >> conftest.c <conftest.out 2>/dev/null; then +if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 $as_echo "$PLATFORM_TRIPLET" >&6; } diff --git a/configure.ac b/configure.ac index bf2a348f8257..8135c716f3ce 100644 --- a/configure.ac +++ b/configure.ac @@ -870,7 +870,7 @@ cat >> conftest.c <conftest.out 2>/dev/null; then +if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` AC_MSG_RESULT([$PLATFORM_TRIPLET]) else