summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2021-05-10 23:34:28 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2021-05-10 23:34:36 +0100
commit66ed1750662e08635c78e8cdd477499277ba392a (patch)
tree7810408abd1d1e9752429215f695e291aff9c903 /sys-apps/sandbox
parentdev-python/monotonic: Remove last-rited pkg (diff)
downloadgentoo-66ed1750662e08635c78e8cdd477499277ba392a.tar.gz
gentoo-66ed1750662e08635c78e8cdd477499277ba392a.tar.bz2
gentoo-66ed1750662e08635c78e8cdd477499277ba392a.zip
sys-apps/sandbox: force -fno-lto
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'sys-apps/sandbox')
-rw-r--r--sys-apps/sandbox/sandbox-2.24.ebuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys-apps/sandbox/sandbox-2.24.ebuild b/sys-apps/sandbox/sandbox-2.24.ebuild
index 844b1e1fe4cc..410fd928fc58 100644
--- a/sys-apps/sandbox/sandbox-2.24.ebuild
+++ b/sys-apps/sandbox/sandbox-2.24.ebuild
@@ -25,6 +25,14 @@ sandbox_death_notice() {
ewarn "FEATURES='-sandbox -usersandbox' emerge sandbox"
}
+src_prepare() {
+ default
+
+ # sandbox uses `__asm__ (".symver "...` which does
+ # not play well with gcc's LTO: https://gcc.gnu.org/PR48200
+ append-flags -fno-lto
+}
+
multilib_src_configure() {
filter-lfs-flags #90228