commit:     e6dd349ea37663f3e3a6ce1df3fd9f7cf18e20cd
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun May  7 15:41:11 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May  7 15:59:20 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6dd349e

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 <AT> gentoo.org>

 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 be169f934c02..201b033df279 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*'

Reply via email to