]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
toplevel: Substitute GDCFLAGS instead of using CFLAGS
authorArsen Arsenović <arsen@aarsen.me>
Sat, 5 Aug 2023 13:02:06 +0000 (15:02 +0200)
committerArsen Arsenović <arsen@gcc.gnu.org>
Mon, 7 Aug 2023 20:59:35 +0000 (22:59 +0200)
r14-2875-g1ed21e23d6d4da ("Use substituted GDCFLAGS") already
implemented this change, but only on the generated file rather than in
the template it is generated from.

ChangeLog:

* Makefile.tpl: Substitute @GDCFLAGS@ instead of using
$(CFLAGS).

Makefile.tpl

index d0fe7e2fb778b3c3fa2cc8742e06cf1f78fdc5f2..4fdca604eb0c045ed793d2667c420d832ec0e7e7 100644 (file)
@@ -447,7 +447,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.