Skip to content

Commit

Permalink
flag-o-matic.eclass: allow -fno-lto too in strip-flags
Browse files Browse the repository at this point in the history
Ionen rightly points out that people might have -flto by default and
-fno-lto in package.env.

Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed May 7, 2023
1 parent 1db5932 commit b5a4bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eclass/flag-o-matic.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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*'
Expand Down

0 comments on commit b5a4bfb

Please sign in to comment.