summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-08-11 11:30:05 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-09-02 16:06:19 +0200
commit3bc1c725a27c442e2a794ede8ee29e22d67706fe (patch)
tree0534a8920909d9f62019d40667c213ea26c9eb13
parent128669b5a1a4633afe2074c5d7f29f41229db306 (diff)
downloadOSELAS.Toolchain-3bc1c725a27c442e2a794ede8ee29e22d67706fe.tar.gz
pre/toolchain: use -fdebug-prefix-map everywhere
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/pre/toolchain.make18
1 files changed, 13 insertions, 5 deletions
diff --git a/rules/pre/toolchain.make b/rules/pre/toolchain.make
index b809823..a520dcd 100644
--- a/rules/pre/toolchain.make
+++ b/rules/pre/toolchain.make
@@ -48,16 +48,24 @@ PTX_HOST_CROSS_AUTOCONF := \
PTXDIST_HOST_LDFLAGS := -L${PTXDIST_PATH_SYSROOT_HOST_PREFIX}/lib
ifndef PTXCONF_TOOLCHAIN_DEBUG
-TOOLCHAIN_CROSS_DEBUG_FLAGS := \
- -g3 \
- -gno-record-gcc-switches
-
TOOLCHAIN_CROSS_DEBUG_MAP := \
$(call remove_quotes,$(PTXCONF_DESTDIR))= \
$(PTXDIST_WORKSPACE)/platform-=$(call remove_quotes,$(PTXCONF_PROJECT))/platform-
+TOOLCHAIN_CROSS_DEBUG_MAP_FLAGS := \
+ $(addprefix -fdebug-prefix-map=,$(TOOLCHAIN_CROSS_DEBUG_MAP))
+
+PTXDIST_HOST_CPPFLAGS := \
+ $(PTXDIST_HOST_CPPFLAGS) \
+ $(TOOLCHAIN_CROSS_DEBUG_MAP_FLAGS)
+
+TOOLCHAIN_CROSS_DEBUG_FLAGS := \
+ -g3 \
+ -gno-record-gcc-switches \
+ $(TOOLCHAIN_CROSS_DEBUG_MAP_FLAGS)
+
GLIBC_FLAGS_ENV += \
- $(addsuffix "-O2 $(TOOLCHAIN_CROSS_DEBUG_FLAGS) $(addprefix -fdebug-prefix-map=,$(TOOLCHAIN_CROSS_DEBUG_MAP))",CFLAGS= CXXFLAGS=)
+ $(addsuffix "-O2 $(TOOLCHAIN_CROSS_DEBUG_FLAGS)",CFLAGS= CXXFLAGS=)
endif
#