aboutsummaryrefslogtreecommitdiff
path: root/sim/common/Make-common.in
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-17 14:45:25 -0500
committerMike Frysinger <vapier@gentoo.org>2021-04-02 23:31:14 -0400
commitc2783492b62faa62bc501ffdd18fa0b6aa8d64b6 (patch)
treeda47b05f876d4c9955dbcee8c91a91624807a1a9 /sim/common/Make-common.in
parentca698bee0a391bcde5cb5e29fde5df86ba28a04a (diff)
downloadgdb-c2783492b62faa62bc501ffdd18fa0b6aa8d64b6.zip
gdb-c2783492b62faa62bc501ffdd18fa0b6aa8d64b6.tar.gz
gdb-c2783492b62faa62bc501ffdd18fa0b6aa8d64b6.tar.bz2
sim: unify toolchain settings
The toplevel, common, and igen dirs all have their own code for setting up toolchain settings. Unify all of that in a new macro.
Diffstat (limited to 'sim/common/Make-common.in')
-rw-r--r--sim/common/Make-common.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in
index f4a7e8d..a6875fe 100644
--- a/sim/common/Make-common.in
+++ b/sim/common/Make-common.in
@@ -72,6 +72,7 @@ INSTALL_DATA = @INSTALL_DATA@
CC = @CC@
C_DIALECT = @C_DIALECT@
CC_FOR_BUILD = @CC_FOR_BUILD@
+CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
CXXFLAGS = @CXXFLAGS@
@@ -230,7 +231,7 @@ CSEARCH = -I. -I$(srcdir) -I../common -I$(srccom) \
-I../../opcodes -I$(srcroot)/opcodes \
@INCINTL@
ALL_CFLAGS = $(CONFIG_CFLAGS) $(CSEARCH) $(CFLAGS)
-BUILD_CFLAGS = -g -O $(CSEARCH)
+BUILD_CFLAGS = $(CFLAGS_FOR_BUILD) $(CSEARCH)
COMMON_DEP_CFLAGS = $(CONFIG_CFLAGS) $(CSEARCH)