diff mbox series

[yocto-patches,meta-selinux] libsemanage: disable LTO to fix buildpaths QA failure

Message ID 20260331081201.72633-1-thomas.perrot@bootlin.com
State New
Headers show
Series [yocto-patches,meta-selinux] libsemanage: disable LTO to fix buildpaths QA failure | expand

Commit Message

Thomas Perrot March 31, 2026, 8:12 a.m. UTC
From: Thomas Perrot <thomas.perrot@bootlin.com>

Fat LTO objects in the static library embed original source paths in
.gnu.lto_* IR sections. Unlike DWARF output, these sections are not
affected by -ffile-prefix-map, causing TMPDIR references to survive
into the installed libsepol-staticdev package.

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
---
 recipes-security/selinux/libsemanage_3.10.bb | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/recipes-security/selinux/libsemanage_3.10.bb b/recipes-security/selinux/libsemanage_3.10.bb
index 1279cce23e22..4a18faecfc8b 100644
--- a/recipes-security/selinux/libsemanage_3.10.bb
+++ b/recipes-security/selinux/libsemanage_3.10.bb
@@ -65,4 +65,8 @@  do_install:append() {
 
 }
 
+# LTO fat objects in static library embed original source paths in .gnu.lto_* IR
+# sections which are not affected by -ffile-prefix-map, causing buildpaths QA failure
+LTO = ""
+
 BBCLASSEXTEND = "native"