]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
IBM Z: Avoid bash-specific substitution in configure
authorMarius Hillenbrand <mhillen@linux.ibm.com>
Wed, 12 May 2021 11:59:19 +0000 (13:59 +0200)
committerMarius Hillenbrand <mhillen@linux.ibm.com>
Mon, 17 May 2021 14:04:09 +0000 (16:04 +0200)
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.

gcc/configure
gcc/configure.ac

index f03fe88838402f90497ddd213ff43fb2d229ce4a..039a86d11bb75a83709888553531cd4350c0abb7 100755 (executable)
@@ -32205,7 +32205,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.  */
index e9ba2af548a5c0891475ff851c79a8fa8ebf373f..4e788019d99c83c897a637235b397ce67af778c3 100644 (file)
@@ -7499,7 +7499,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>