Add GCC env.
This commit is contained in:
parent
ee6787a9d0
commit
31a0dd084e
19
desktop/portage/env/gcc.conf
vendored
Normal file
19
desktop/portage/env/gcc.conf
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Inferencium
|
||||||
|
# Portage - env - GCC
|
||||||
|
|
||||||
|
# Copyright 2023 Jake Winters
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
# Version: 0.0.0.0
|
||||||
|
|
||||||
|
|
||||||
|
# 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"
|
||||||
|
## Compiler flags
|
||||||
|
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}"
|
Loading…
x
Reference in New Issue
Block a user