From 69aa918261ef89f1ab56ef61d4e839d7ab27ac13 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 25 Mar 2024 21:51:34 -0400 Subject: [PATCH] sys-fs/aufs-util: mark as LTO-unsafe It uses an elaborate macro to insert __attribute__ ((section ("EXP"), used)) as an export annotation, and then uses readelf to dump this and assemble a linker version script. Apparently visibility attributes is too boring. ;) It totally falls over when exposed to LTO. Signed-off-by: Eli Schwartz Signed-off-by: Sam James --- sys-fs/aufs-util/aufs-util-4.14_p20190603.ebuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sys-fs/aufs-util/aufs-util-4.14_p20190603.ebuild b/sys-fs/aufs-util/aufs-util-4.14_p20190603.ebuild index 2055f81c8d3a3..ced94344056be 100644 --- a/sys-fs/aufs-util/aufs-util-4.14_p20190603.ebuild +++ b/sys-fs/aufs-util/aufs-util-4.14_p20190603.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit linux-info multilib toolchain-funcs +inherit flag-o-matic linux-info multilib toolchain-funcs DESCRIPTION="Utilities are always necessary for aufs" HOMEPAGE="http://aufs.sourceforge.net/" @@ -47,5 +47,12 @@ src_prepare() { } src_compile() { + # It uses an elaborate macro to insert __attribute__ ((section ("EXP"), used)) + # as an export annotation, and then uses readelf to dump this and assemble a + # linker version script. Apparently visibility attributes is too boring. ;) + # + # It totally falls over when exposed to LTO. + filter-lto + emake all }