cc.has_argument cannot be used to check linker arguments
Please see https://github.com/mesonbuild/meson/pull/2971.
Compiler for C supports argument -Wl,-z,relro: NO
Compiler for C supports argument -Wl,-z,now: NO
When using cc.has_argument
to check linker arguments, the results are meaningless. Meson uses cc -c
to do the check, so arguments specified with -Wl,
are never passed to the linker.