diff options
author | 2023-08-25 00:13:08 +0100 | |
---|---|---|
committer | 2023-08-25 00:13:08 +0100 | |
commit | 5e5c9d5c524871f5af260557dbd2962b8eec5087 (patch) | |
tree | 4778e3ef117c6dabefab24ddd70b68554542276f /profiles/features | |
parent | perl-core/Unicode-Collate: add 1.310.0 (diff) | |
download | gentoo-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>
Diffstat (limited to 'profiles/features')
-rw-r--r-- | profiles/features/llvm/make.defaults | 5 |
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" |