commit: b5a4bfb180d002c29b35bfc267e47857ba481fb8
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun May 7 16:02:52 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 7 16:02:52 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5a4bfb1
flag-o-matic.eclass: allow -fno-lto too in strip-flags
Ionen rightly points out that people might have -flto by default and
-fno-lto in package.env.
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/flag-o-matic.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index ff0fa09ed152..bef3abf69dde 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -48,7 +48,7 @@ setup-allowed-flags() {
_setup-allowed-flags() {
ALLOWED_FLAGS=(
-pipe -O '-O[123szg]' '-mcpu=*' '-march=*' '-mtune=*'
- -flto '-flto=*'
+ -flto '-flto=*' -fno-lto
# Hardening flags
'-fstack-protector*'