All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bitbake.conf: Add -fcanon-prefix-map to DEBUG_PREFIX_MAP
@ 2023-04-28  3:20 Khem Raj
  2023-04-28 11:17 ` [OE-core] " Martin Jansa
  2023-05-27  5:27 ` Jacob Kroon
  0 siblings, 2 replies; 6+ messages in thread
From: Khem Raj @ 2023-04-28  3:20 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

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
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/conf/bitbake.conf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index d94ffe1df9..453bef37a9 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -644,7 +644,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} \
-- 
2.40.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-05-27  8:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-28  3:20 [PATCH] bitbake.conf: Add -fcanon-prefix-map to DEBUG_PREFIX_MAP Khem Raj
2023-04-28 11:17 ` [OE-core] " Martin Jansa
2023-04-28 13:44   ` Khem Raj
2023-05-27  5:27 ` Jacob Kroon
2023-05-27  7:50   ` Khem Raj
2023-05-27  8:16   ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.