forked from AuroraMiddleware/gtk
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:
parent
b9445f4d7e
commit
69441cbace
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user