aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2023-07-16 19:43:56 +0200
committerAndreas Schwab <schwab@suse.de>2023-07-31 11:37:47 +0200
commit1ed21e23d6d4da8201a09558b71d9a34281e54dd (patch)
tree0cb5bfc7c3ce30bf8917f66d2ab91829ddba9efe
parent129feec0ba4f8ce74edf1fdf7da37b54968d3d37 (diff)
downloadgcc-1ed21e23d6d4da8201a09558b71d9a34281e54dd.zip
gcc-1ed21e23d6d4da8201a09558b71d9a34281e54dd.tar.gz
gcc-1ed21e23d6d4da8201a09558b71d9a34281e54dd.tar.bz2
Use substituted GDCFLAGS
Use the substituted value for GCDFLAGS instead of hardcoding $(CFLAGS) so that the subdir configure scripts use the configured value. * configure.ac (GDCFLAGS): Set default from ${CFLAGS}. * configure: Regenerate. * Makefile.in (GDCFLAGS): Substitute @GDCFLAGS@.
-rw-r--r--Makefile.in2
-rwxr-xr-xconfigure1
-rw-r--r--configure.ac1
3 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 04307ca..144bccd 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -444,7 +444,7 @@ LIBCFLAGS = $(CFLAGS)
CXXFLAGS = @CXXFLAGS@
LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
GOCFLAGS = $(CFLAGS)
-GDCFLAGS = $(CFLAGS)
+GDCFLAGS = @GDCFLAGS@
GM2FLAGS = $(CFLAGS)
# Pass additional PGO and LTO compiler options to the PGO build.
diff --git a/configure b/configure
index 0d3f5c6..3269da9 100755
--- a/configure
+++ b/configure
@@ -12947,6 +12947,7 @@ fi
+GDCFLAGS=${GDCFLAGS-${CFLAGS}}
# Target tools.
diff --git a/configure.ac b/configure.ac
index dddab2a..d07a0fa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3662,6 +3662,7 @@ AC_SUBST(CFLAGS)
AC_SUBST(CXXFLAGS)
AC_SUBST(GDC)
AC_SUBST(GDCFLAGS)
+GDCFLAGS=${GDCFLAGS-${CFLAGS}}
# Target tools.
AC_ARG_WITH([build-time-tools],