Skip to content

Commit

Permalink
flag-o-matic.eclass: add -flto, -flto=* to ALLOWED_FLAGS (strip-flags…
Browse files Browse the repository at this point in the history
… whitelist)

LTO is pretty safe nowadays and packages broken with it should really use
filter-lto specifically instead.

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

0 comments on commit e6dd349

Please sign in to comment.