flag-o-matic.eclass: add -flto, -flto=* to ALLOWED_FLAGS (strip-flags whitelist)

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

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-05-07 16:59:20 +01:00
parent ff83b5e28f
commit e6dd349ea3
+1
View File
@@ -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*'