]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Use substituted GDCFLAGS
authorAndreas Schwab <schwab@suse.de>
Sun, 16 Jul 2023 17:43:56 +0000 (19:43 +0200)
committerAndreas Schwab <schwab@suse.de>
Mon, 31 Jul 2023 09:37:47 +0000 (11:37 +0200)
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@.

Makefile.in
configure
configure.ac

index 04307ca561bedc7b33d0e01b974957e2c61cc1b7..144bccd2603101b05b2d7202ffaf91b580cee851 100644 (file)
@@ -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.
index 0d3f5c6455d4da538f17648ac401ec640e740345..3269da9829fb20913f691d73c82233f0256203fc 100755 (executable)
--- a/configure
+++ b/configure
@@ -12947,6 +12947,7 @@ fi
 
 
 
+GDCFLAGS=${GDCFLAGS-${CFLAGS}}
 
 # Target tools.
 
index dddab2a56d8620dd1fb9a5d47afbaa298980142a..d07a0fa7698b952aeb06f3230e7ab32594dd3557 100644 (file)
@@ -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],