From b5a4bfb180d002c29b35bfc267e47857ba481fb8 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 7 May 2023 17:02:52 +0100 Subject: [PATCH] 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 --- 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 ff0fa09ed152e..bef3abf69dde0 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*'