From 1513c6030fdd131ea84af9e1f7ee8658edb74442 Mon Sep 17 00:00:00 2001 From: inference Date: Sat, 17 Sep 2022 00:09:45 +0100 Subject: [PATCH] Move LTO thread count to LDFLAGS due to Clang ignoring it when set in CFLAGS. --- portage/env/nopie.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/portage/env/nopie.conf b/portage/env/nopie.conf index fd4a693..c620ee8 100644 --- a/portage/env/nopie.conf +++ b/portage/env/nopie.conf @@ -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}"