From 81c0a6ac213178d6d8d72c9e2033d37b5ae5c7f6 Mon Sep 17 00:00:00 2001 From: Moritz Gmeiner Date: Tue, 29 Aug 2023 17:00:10 +0200 Subject: [PATCH] split LDFLAGS into mold and llvm flags; removed -flto since apparently not needed --- make.conf/00common | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/make.conf/00common b/make.conf/00common index 5145706..967f773 100644 --- a/make.conf/00common +++ b/make.conf/00common @@ -25,7 +25,9 @@ ADDR2LINE="llvm-addr2line" LD="ld.mold" -LDFLAGS="${LDFLAGS} -fuse-ld=mold -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed -flto" +LDFLAGS="${LDFLAGS} -Wl,--as-needed -fuse-ld=mold" + +LDFLAGS="${LDFLAGS} -rtlib=compiler-rt -unwindlib=libunwind" # don't strip comment section of binaries PORTAGE_STRIP_FLAGS="--strip-unneeded -N __gentoo_check_ldflags__ -R .GCC.command.line -R .note.gnu.gold-version"