Skip to contentSkip to conversation

libselinux: disable LTO to fix buildpaths QA failure

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libselinux: 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 libselinux-staticdev package.

---
 recipes-security/selinux/libselinux_3.10.bb | 4 ++++
 1 file changed, 4 insertions(+)
recipes-security/selinux/libselinux_3.10.bb +4 -0
index 9cfcf65b5020..86c9168a002d 100644
@@ -28,4 +28,8 @@ def get_policyconfigarch(d):
 EXTRA_OEMAKE = "${@get_policyconfigarch(d)}"
 EXTRA_OEMAKE:append:libc-musl = " FTS_LDLIBS=-lfts"
 
+# 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