commit: 69aa918261ef89f1ab56ef61d4e839d7ab27ac13
Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Tue Mar 26 01:51:34 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 26 12:27:30 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69aa9182
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 <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
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 2055f81c8d3a..ced94344056b 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
}