summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2020-08-26 15:12:43 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-08-27 16:37:01 +0200
commit0cfa5b88609c3223381c444796eead5eb65eabc4 (patch)
tree81b5caf282bb0c8b36afab43b286ede36057f691 /rules
parenta27f1c4d7dfa97cd505e2193e5e9bfce21d66907 (diff)
downloadOSELAS.Toolchain-0cfa5b88609c3223381c444796eead5eb65eabc4.tar.gz
OSELAS.Toolchain-0cfa5b88609c3223381c444796eead5eb65eabc4.tar.xz
pre/toolchain: use -ffile-prefix-map= with the cross compiler
-ffile-prefix-map= is -fdebug-prefix-map= and -fmacro-prefix-map=. It's only supprted with gcc >= 8, so only use it for the cross flags. This removes some more absolute paths from the build host. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r--rules/pre/toolchain.make7
1 files changed, 2 insertions, 5 deletions
diff --git a/rules/pre/toolchain.make b/rules/pre/toolchain.make
index fd3703a..a6a21e3 100644
--- a/rules/pre/toolchain.make
+++ b/rules/pre/toolchain.make
@@ -58,17 +58,14 @@ TOOLCHAIN_CROSS_DEBUG_MAP += \
$(call ptx/sh, realpath $(PTXDIST_WORKSPACE))/platform-=$(call remove_quotes,$(PTXCONF_PROJECT))/platform-
endif
-TOOLCHAIN_CROSS_DEBUG_MAP_FLAGS := \
- $(addprefix -fdebug-prefix-map=,$(TOOLCHAIN_CROSS_DEBUG_MAP))
-
PTXDIST_HOST_CPPFLAGS := \
$(PTXDIST_HOST_CPPFLAGS) \
- $(TOOLCHAIN_CROSS_DEBUG_MAP_FLAGS)
+ $(addprefix -fdebug-prefix-map=,$(TOOLCHAIN_CROSS_DEBUG_MAP))
TOOLCHAIN_CROSS_DEBUG_FLAGS := \
-g3 \
-gno-record-gcc-switches \
- $(TOOLCHAIN_CROSS_DEBUG_MAP_FLAGS)
+ $(addprefix -ffile-prefix-map=,$(TOOLCHAIN_CROSS_DEBUG_MAP))
GLIBC_DEBUG_FLAGS_ENV := \
$(addsuffix "-O2 $(TOOLCHAIN_CROSS_DEBUG_FLAGS)",CFLAGS= CXXFLAGS=)