From 31bd670a720ff01b6c100752885271afd4952b2e Mon Sep 17 00:00:00 2001 From: inference Date: Fri, 16 Sep 2022 18:48:43 +0100 Subject: [PATCH] Change microarchitecture from Zen 1 to Zen 3 due to CPU architecture change. Switch to ThinLTO since full LTO now causes memory consumption issues. Limit ThinLTO thread count to 4. Limit Portage compilation thread count to 4. --- portage/make.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/portage/make.conf b/portage/make.conf index ed04d02..17c7584 100644 --- a/portage/make.conf +++ b/portage/make.conf @@ -24,8 +24,8 @@ 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=znver1 -O2 -pipe -flto=full -U__gnu_linux__ ${C_SEC}" -CXXFLAGS="-march=znver1 -O2 -pipe -flto=full ${C_SEC}" +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}" ## Linker flags. LDFLAGS="-fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind ${LD_SEC}" @@ -65,3 +65,4 @@ GENTOO_MIRRORS="https://mirror.init7.net/gentoo/" ## Emerge. EMERGE_DEFAULT_OPTS="--ask --verbose" FEATURES="buildpkg" +MAKEOPTS="-j4"