Switch from long-form optimise argument to short-form
Long-form optimise argument breaks optimisation in build systems, causing build failures and possibly undefined behaviour.
This commit is contained in:
parent
9390ec1621
commit
04f34e209c
@ -4,7 +4,7 @@
|
||||
# Copyright 2022 Jake Winters
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
# Version: 16.0.0-alpha.4+48
|
||||
# Version: 16.0.0-alpha.5+49
|
||||
|
||||
|
||||
# System
|
||||
@ -39,8 +39,8 @@ PORTAGE_RSYNC_EXTRA_OPTS="--progress --verbose"
|
||||
C_SEC="-fcf-protection=full -fstack-clash-protection -fstack-protector-strong -ftrapv -ftrivial-auto-var-init=zero"
|
||||
LD_SEC="-Wl,-z,defs -Wl,-z,now -Wl,-z,relro"
|
||||
## Compiler flags
|
||||
CFLAGS="-flto=thin -march=znver3 -mtune=znver3 --optimize=2 -pipe ${C_SEC}"
|
||||
CXXFLAGS="-flto=thin -march=znver3 -mtune=znver3 --optimize=2 -pipe ${C_SEC}"
|
||||
CFLAGS="-flto=thin -march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}"
|
||||
CXXFLAGS="-flto=thin -march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}"
|
||||
RUSTFLAGS="-C debuginfo=0 -C embed-bitcode=y -C lto -C opt-level=2 -C target-cpu=znver3"
|
||||
## Linker flags
|
||||
LDFLAGS="-Wl,-O2 -Wl,--strip-all -Wl,--thinlto-jobs=4 ${LD_SEC}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user