public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-8422] IBM Z: Avoid bash-specific substitution in configure
@ 2021-05-17 14:07 Marius Hillenbrand
0 siblings, 0 replies; only message in thread
From: Marius Hillenbrand @ 2021-05-17 14:07 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:a16952ddf9515aa08b8c9c02a80725801131cc94
commit r11-8422-ga16952ddf9515aa08b8c9c02a80725801131cc94
Author: Marius Hillenbrand <mhillen@linux.ibm.com>
Date: Wed May 12 13:59:19 2021 +0200
IBM Z: Avoid bash-specific substitution in configure
Fix a bootstrap error observed on NetBSD.
2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
gcc/ChangeLog:
PR bootstrap/100552
* configure.ac: Replace pattern substitution with call to sed.
* configure: Regenerate.
(cherry picked from commit 47abe2abf1210847629ebc271b1fc8c6d53f0d47)
Diff:
---
gcc/configure | 3 ++-
gcc/configure.ac | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/gcc/configure b/gcc/configure
index e8ecb3b0297..ced77073037 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -32111,7 +32111,8 @@ case $target in
# cross build. are target headers available?
# carefully coerce the build-system compiler to use target headers
saved_CXXFLAGS="$CXXFLAGS"
- CROSS_TEST_CXXFLAGS="-nostdinc ${XGCC_FLAGS_FOR_TARGET//-B/-idirafter/}"
+ fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
+ CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
CXXFLAGS="$CROSS_TEST_CXXFLAGS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 96a6f62b0d3..3d31bbdecad 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -7481,7 +7481,8 @@ case $target in
# cross build. are target headers available?
# carefully coerce the build-system compiler to use target headers
saved_CXXFLAGS="$CXXFLAGS"
- CROSS_TEST_CXXFLAGS="-nostdinc ${XGCC_FLAGS_FOR_TARGET//-B/-idirafter/}"
+ fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
+ CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
CXXFLAGS="$CROSS_TEST_CXXFLAGS"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
#include <math.h>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-17 14:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-17 14:07 [gcc r11-8422] IBM Z: Avoid bash-specific substitution in configure Marius Hillenbrand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).