From: Thomas Perrot <[email protected]>

With LTO enabled, GCC performs a link-time recompilation pass where
DW_AT_comp_dir is set to the build directory. The -ffile-prefix-map
flags from DEBUG_PREFIX_MAP are not applied to this attribute during
LTO recompilation, leaving a raw TMPDIR path in the split debug
symbols of libsqlite3.so.

Signed-off-by: Thomas Perrot <[email protected]>
---
 meta/conf/distro/include/lto.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/conf/distro/include/lto.inc b/meta/conf/distro/include/lto.inc
index 8752249685a4..b4f823681af0 100644
--- a/meta/conf/distro/include/lto.inc
+++ b/meta/conf/distro/include/lto.inc
@@ -21,6 +21,8 @@ LTO:pn-libbsd = ""
 LTO:pn-perf = ""
 # webkit is not linking properly with LTO, disable until next time
 LTO:pn-webkitgtk = ""
+# LTO link-time recompilation leaves TMPDIR in DW_AT_comp_dir of debug symbols
+LTO:pn-sqlite3 = ""
 LTO:pn-xserver-xorg = ""
 LTO:pn-grub = ""
 LTO:pn-grub-efi = ""
-- 
2.53.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#234131): 
https://lists.openembedded.org/g/openembedded-core/message/234131
Mute This Topic: https://lists.openembedded.org/mt/118551689/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to