Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a32bdf

Browse files
author
Xavier de Gaye
committed
Issue #27453: CPP invocation in configure must use CPPFLAGS.
Patch by Chi Hsuan Yen.
1 parent fa95068 commit 3a32bdf

4 files changed

Lines changed: 6 additions & 2 deletions

File tree

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,3 +1663,4 @@ Gennadiy Zlobin
16631663
Doug Zongker
16641664
Peter Åstrand
16651665
evilzero
1666+
Chi Hsuan Yen

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ Windows
145145
Build
146146
-----
147147

148+
- Issue #27453: CPP invocation in configure must use CPPFLAGS. Patch by
149+
Chi Hsuan Yen.
150+
148151
- Issue #27490: Do not build pgen when cross-compiling. Patch by Thomas
149152
Perl.
150153

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5369,7 +5369,7 @@ cat >> conftest.c <<EOF
53695369
53705370
EOF
53715371

5372-
if $CPP conftest.c >conftest.out 2>/dev/null; then
5372+
if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
53735373
PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '`
53745374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5
53755375
$as_echo "$PLATFORM_TRIPLET" >&6; }

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ cat >> conftest.c <<EOF
870870

871871
EOF
872872

873-
if $CPP conftest.c >conftest.out 2>/dev/null; then
873+
if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
874874
PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '`
875875
AC_MSG_RESULT([$PLATFORM_TRIPLET])
876876
else

0 commit comments

Comments
 (0)