* [PATCH] IBM Z: Avoid bash-specific substitution in configure
@ 2021-05-12 15:12 Marius Hillenbrand
2021-05-13 18:58 ` Jeff Law
0 siblings, 1 reply; 2+ messages in thread
From: Marius Hillenbrand @ 2021-05-12 15:12 UTC (permalink / raw)
To: gcc-patches
Tested configure runs on NetBSD x86-64, Linux on x86-64 (with target s390x), and
on s390x.
Is the patch ok for master, and for gcc-11?
----8<------8<------8<-----
Fix a bootstrap error observed on NetBSD.
2021-05-12 Marius Hillenbrand <mhillen@linux.ibm.com>
gcc/ChangeLog:
PR bootstrap/100552
* configure.ac: Replace pattern substitution with call to sed.
* configure: Regenerate (tbd at time of commit).
---
gcc/configure.ac | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/configure.ac b/gcc/configure.ac
index e9ba2af548a..4e788019d99 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -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>
--
2.26.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] IBM Z: Avoid bash-specific substitution in configure
2021-05-12 15:12 [PATCH] IBM Z: Avoid bash-specific substitution in configure Marius Hillenbrand
@ 2021-05-13 18:58 ` Jeff Law
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Law @ 2021-05-13 18:58 UTC (permalink / raw)
To: Marius Hillenbrand, gcc-patches
On 5/12/2021 9:12 AM, Marius Hillenbrand via Gcc-patches wrote:
> Tested configure runs on NetBSD x86-64, Linux on x86-64 (with target s390x), and
> on s390x.
>
> Is the patch ok for master, and for gcc-11?
>
> ----8<------8<------8<-----
>
> Fix a bootstrap error observed on NetBSD.
>
> 2021-05-12 Marius Hillenbrand <mhillen@linux.ibm.com>
>
> gcc/ChangeLog:
>
> PR bootstrap/100552
> * configure.ac: Replace pattern substitution with call to sed.
> * configure: Regenerate (tbd at time of commit).
OK
Jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-13 18:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-12 15:12 [PATCH] IBM Z: Avoid bash-specific substitution in configure Marius Hillenbrand
2021-05-13 18:58 ` Jeff Law
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).