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@gentoo.org>
This commit is contained in:
Sam James
2023-05-07 17:02:52 +01:00
parent 1db5932753
commit b5a4bfb180

View File

@@ -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*'