Skip to contentSkip to conversation

libsemanage: disable LTO to fix buildpaths QA failure

PATCH New [email protected] 1 participant 1 message Mar 31

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libsemanage: disable LTO to fix buildpaths QA failure

From: Thomas Perrot <[email protected]>

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.

---
 recipes-security/selinux/libsemanage_3.10.bb | 4 ++++
 1 file changed, 4 insertions(+)
recipes-security/selinux/libsemanage_3.10.bb +4 -0
index 1279cce23e22..4a18faecfc8b 100644
@@ -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"
Signature · 1 line
2.53.0