summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-08-25 00:13:08 +0100
committerSam James <sam@gentoo.org>2023-08-25 00:13:08 +0100
commit5e5c9d5c524871f5af260557dbd2962b8eec5087 (patch)
tree4778e3ef117c6dabefab24ddd70b68554542276f
parentperl-core/Unicode-Collate: add 1.310.0 (diff)
downloadgentoo-5e5c9d5c524871f5af260557dbd2962b8eec5087.tar.gz
gentoo-5e5c9d5c524871f5af260557dbd2962b8eec5087.tar.bz2
gentoo-5e5c9d5c524871f5af260557dbd2962b8eec5087.zip
profiles/features/llvm: drop problematic LDFLAGS
clang-common already handles setting these for us, and if we set it in profiles, then it gets passed down to gcc via clang for things like Fortran where clang is just acting as the driver. Closes: https://bugs.gentoo.org/908798 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--profiles/features/llvm/make.defaults5
1 files changed, 4 insertions, 1 deletions
diff --git a/profiles/features/llvm/make.defaults b/profiles/features/llvm/make.defaults
index a677172b269d..ce3401222615 100644
--- a/profiles/features/llvm/make.defaults
+++ b/profiles/features/llvm/make.defaults
@@ -11,7 +11,10 @@ CXX="clang++"
LD="ld.lld"
# linker flags
-LDFLAGS="${LDFLAGS} -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed"
+# We don't set LDFLAGS here for linker, rtlib, etc because clang-common enforces
+# the needed bits for us and it confuses clang->gcc for stuff like Fortran,
+# see bug #908798.
+LDFLAGS="${LDFLAGS} -Wl,--as-needed"
# use LLVM-provided binutils
AR="llvm-ar"