commit: 66ed1750662e08635c78e8cdd477499277ba392a Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Mon May 10 22:34:28 2021 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Mon May 10 22:34:36 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66ed1750
sys-apps/sandbox: force -fno-lto Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> sys-apps/sandbox/sandbox-2.24.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys-apps/sandbox/sandbox-2.24.ebuild b/sys-apps/sandbox/sandbox-2.24.ebuild index 844b1e1fe4c..410fd928fc5 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