LTO is pretty safe nowadays and packages broken with it should really use
filter-lto specifically instead.

Signed-off-by: Sam James <s...@gentoo.org>
---
 eclass/flag-o-matic.eclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index be169f934c02..201b033df279 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -48,6 +48,7 @@ setup-allowed-flags() {
 _setup-allowed-flags() {
        ALLOWED_FLAGS=(
                -pipe -O '-O[123sg]' '-mcpu=*' '-march=*' '-mtune=*'
+               -flto '-flto=*'
 
                # Hardening flags
                '-fstack-protector*'
-- 
2.40.1


Reply via email to