[lldb/test] Append CXXFLAGS_EXTRAS last in Makefile.rules
authorPavel Labath <pavel@labath.sk>
Mon, 9 May 2022 17:24:57 +0000 (19:24 +0200)
committerPavel Labath <pavel@labath.sk>
Mon, 9 May 2022 17:26:29 +0000 (19:26 +0200)
This matches what we do with CFLAGS, and it started to matter
8abfa5119ad, which added some -std=-apending code.

lldb/packages/Python/lldbsuite/test/make/Makefile.rules

index 3f9c2ab..6917d73 100644 (file)
@@ -275,7 +275,7 @@ ifeq "$(MAKE_GMODULES)" "YES"
 endif
 
 CFLAGS += $(CFLAGS_EXTRAS)
-CXXFLAGS += -std=c++11 $(CFLAGS) $(ARCH_CXXFLAGS) $(CXXFLAGS_EXTRAS)
+CXXFLAGS += -std=c++11 $(CFLAGS) $(ARCH_CXXFLAGS)
 LD = $(CC)
 LDFLAGS ?= $(CFLAGS)
 LDFLAGS += $(LD_EXTRAS) $(ARCH_LDFLAGS)
@@ -411,6 +411,8 @@ ifeq (1,$(USE_LIBDL))
        endif
 endif
 
+CXXFLAGS += $(CXXFLAGS_EXTRAS)
+
 #----------------------------------------------------------------------
 # dylib settings
 #----------------------------------------------------------------------