mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
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:
@@ -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*'
|
||||
|
||||
Reference in New Issue
Block a user