Move LTO thread count to LDFLAGS due to Clang ignoring it when set in CFLAGS.
This commit is contained in:
parent
4bf4ce6b20
commit
1513c6030f
6
portage/env/nopie.conf
vendored
6
portage/env/nopie.conf
vendored
@ -24,8 +24,8 @@ C_SEC="-fPIE -fPIC -fstack-protector-all -fstack-clash-protection -D_FORTIFY_SOU
|
||||
LD_SEC="-Wl,--strip-all -Wl,-z,defs -Wl,-z,now -Wl,-z,relro"
|
||||
|
||||
## Compiler flags.
|
||||
CFLAGS="-march=znver3 -O2 -pipe -flto=thin -flto-jobs=4 -U__gnu_linux__ ${C_SEC}"
|
||||
CXXFLAGS="-march=znver3 -O2 -pipe -flto=thin -flto-jobs=4 ${C_SEC}"
|
||||
CFLAGS="-march=znver3 -O2 -pipe -flto=thin -U__gnu_linux__ ${C_SEC}"
|
||||
CXXFLAGS="-march=znver3 -O2 -pipe -flto=thin ${C_SEC}"
|
||||
|
||||
## Linker flags.
|
||||
LDFLAGS="-fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind ${LD_SEC}"
|
||||
LDFLAGS="-fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -flto-jobs=4 ${LD_SEC}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user