[Python-checkins] cpython (3.5): Issue #27453: CPP invocation in configure must use CPPFLAGS.

xavier.degaye python-checkins at python.org
Sat Jul 30 05:40:02 EDT 2016


https://hg.python.org/cpython/rev/4cb94e561e2d
changeset:   102492:4cb94e561e2d
branch:      3.5
parent:      102489:57066dbf3d94
user:        Xavier de Gaye <xdegaye at users.sourceforge.net>
date:        Sat Jul 30 11:28:35 2016 +0200
summary:
  Issue #27453: CPP invocation in configure must use CPPFLAGS.
Patch by Chi Hsuan Yen.

files:
  Misc/ACKS    |  1 +
  Misc/NEWS    |  3 +++
  configure    |  2 +-
  configure.ac |  2 +-
  4 files changed, 6 insertions(+), 2 deletions(-)


diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1663,3 +1663,4 @@
 Doug Zongker
 Peter Åstrand
 evilzero
+Chi Hsuan Yen
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -145,6 +145,9 @@
 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
--- a/configure
+++ b/configure
@@ -5369,7 +5369,7 @@
 
 EOF
 
-if $CPP 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
--- a/configure.ac
+++ b/configure.ac
@@ -870,7 +870,7 @@
 
 EOF
 
-if $CPP 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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list