From 4bf4ce6b20781c4dc6ae1012a9d65f39a80a9b36 Mon Sep 17 00:00:00 2001 From: inference Date: Sat, 17 Sep 2022 00:08:29 +0100 Subject: [PATCH] Move LTO thread count to LDFLAGS due to Clang ignoring it when set in CFLAGS. --- portage/make.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/portage/make.conf b/portage/make.conf index 17c7584..edf46e6 100644 --- a/portage/make.conf +++ b/portage/make.conf @@ -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"