Open DaanDeMeyer opened 4 months ago
I'm pretty sure this is causing the issue from _get_basic_compiler_args
:
# Add LDFLAGS from the env
sys_ld_args = env.coredata.get_external_link_args(self.for_machine, self.language)
# CFLAGS and CXXFLAGS go to both linking and compiling, but we want them
# to only appear on the command line once. Remove dupes.
largs += [x for x in sys_ld_args if x not in sys_args]
This erronously removes --config
from $LDFLAGS
as it's already in $CFLAGS
cc @jpakkane as you introduced this in 74611ecb1f06203fdd08357b3d8cc23af0f897cd
Describe the bug
When detecting the linker,
LDFLAGS
contains-Wl,-z,now --config /usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg
, when sanity testing clang, this has been reduced to-Wl,-z,now /usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg
which causesld.lld
to treat the config file as an argument which fails with:Full logs:
To Reproduce
Can provide reproducer if needed but it won't be a simple one.
Expected behavior
meson can sanity test clang without failing
system parameters
meson --version
1.4.0ninja --version
if it's a Ninja build 1.11.1