diff --git a/aa000-0/portage/env/gcc.conf b/aa000-0/portage/env/gcc.conf index 326b2c9..2b8f2fc 100644 --- a/aa000-0/portage/env/gcc.conf +++ b/aa000-0/portage/env/gcc.conf @@ -2,18 +2,17 @@ # Portage - env - GCC # Copyright 2023 Jake Winters -# SPDX-License-Identifier: BSD-3-Clause-Clear +# SPDX-License-Identifier: BSD-3-Clause -# Version: 1.0.2.3 +# Version: 3.0.0+9 # Flags # Hardening flags -C_SEC="-fstack-clash-protection -fstack-protector-strong -ftrivial-auto-var-init=zero -fwrapv" -LD_SEC="-Wl,-z,defs -Wl,-z,now -Wl,-z,relro" +C_SEC="-fcf-protection=full -fstack-clash-protection -fstack-protector-strong -ftrivial-auto-var-init=zero -fwrapv" ## Compiler flags -CFLAGS="-flto=4 -march=znver3 -mtune=znver3 --optimize=2 -pipe ${C_SEC}" -CXXFLAGS="-flto=4 -march=znver3 -mtune=znver3 --optimize=2 -pipe ${C_SEC}" +CFLAGS="-flto=4 -march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}" +CXXFLAGS="-flto=4 -march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}" RUSTFLAGS="-C debuginfo=0 -C lto -C opt-level=2 -C target-cpu=znver3" ## Linker flags LDFLAGS="-Wl,-O2 -Wl,--strip-all ${LD_SEC}"