From e6dd349ea37663f3e3a6ce1df3fd9f7cf18e20cd Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 7 May 2023 16:41:11 +0100 Subject: [PATCH] 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 --- 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 be169f934c026..201b033df279e 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*'