From: Khem Raj Date: Fri, 28 Apr 2023 03:20:30 +0000 (-0700) Subject: bitbake.conf: Add -fcanon-prefix-map to DEBUG_PREFIX_MAP X-Git-Tag: uninative-3.10~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abe97fa74b10c2c71d79bc3573d4edb509b111f5;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git bitbake.conf: Add -fcanon-prefix-map to DEBUG_PREFIX_MAP This should help canonicalize the relative paths and symlinks during cross compile, -fcanon-prefix-map is newly added in gcc-13+ [1] [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108464#c8 (From OE-Core rev: ba778e43576aaab212751ccc13270fd4c504ba1f) Signed-off-by: Khem Raj Signed-off-by: Alexandre Belloni --- diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index ebfc930a7c3..b527dc564ef 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -648,7 +648,8 @@ EXTRA_OEMAKE:prepend:task-install = "${PARALLEL_MAKEINST} " # Optimization flags. ################################################################## # Beware: applied last to first -DEBUG_PREFIX_MAP ?= "-fmacro-prefix-map=${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ +DEBUG_PREFIX_MAP ?= "-fcanon-prefix-map \ + -fmacro-prefix-map=${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ -fdebug-prefix-map=${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ -fmacro-prefix-map=${B}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ -fdebug-prefix-map=${B}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \