From: Arsen Arsenović Date: Sat, 5 Aug 2023 13:02:06 +0000 (+0200) Subject: toplevel: Substitute GDCFLAGS instead of using CFLAGS X-Git-Tag: basepoints/gcc-15~7097 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4cd4f783c57987954302405702d84015823f320;p=thirdparty%2Fgcc.git toplevel: Substitute GDCFLAGS instead of using CFLAGS 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). --- diff --git a/Makefile.tpl b/Makefile.tpl index d0fe7e2fb778..4fdca604eb0c 100644 --- a/Makefile.tpl +++ b/Makefile.tpl @@ -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.