Do not test for linker flags

Meson warns when doing that, as it's not really portable.

Since we're using platform-specific linker flags on Darwin, we can also
do the same on Linux; the syntax is GCC-specific, so we're going to need
Clang users to test it.
This commit is contained in:
Emmanuele Bassi 2018-03-26 11:48:30 +01:00
parent b9445f4d7e
commit 69441cbace

View File

@ -279,12 +279,8 @@ endif
common_ldflags = []
if host_machine.system() == 'linux'
foreach ldflag: [ '-Wl,-Bsymbolic', '-Wl,-z,relro', '-Wl,-z,now', ]
if cc.has_argument(ldflag)
common_ldflags += [ ldflag ]
endif
endforeach
if host_machine.system() == 'linux' and cc.get_id() == 'gcc'
common_ldflags += [ '-Wl,-Bsymbolic', '-Wl,-z,relro', '-Wl,-z,now', ]
endif
# Maintain compatibility with autotools