Skip to content

Commit

Permalink
sys-fs/aufs-util: mark as LTO-unsafe
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
eli-schwartz authored and thesamesam committed Mar 26, 2024
1 parent 819c19e commit 69aa918
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sys-fs/aufs-util/aufs-util-4.14_p20190603.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down Expand Up @@ -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
}

0 comments on commit 69aa918

Please sign in to comment.