Move LTO thread count to LDFLAGS due to Clang ignoring it when set in CFLAGS.
This commit is contained in:
parent
88e235911d
commit
4bf4ce6b20
@ -24,11 +24,11 @@ C_SEC="-fPIE -fPIC -fstack-protector-all -fstack-clash-protection -D_FORTIFY_SOU
|
||||
LD_SEC="-Wl,-pie -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}"
|
||||
|
||||
## USE flags.
|
||||
USE="clang dbus elogind libcxx libedit llvm-libunwind lto nftables pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libvpx system-llvm system-png system-webp verify-sig wayland"
|
||||
|
Loading…
x
Reference in New Issue
Block a user