Merge branch 'wip/jtojnar/link-args' into 'master'

build: Check relro support using cc.has_link_argument

See merge request GNOME/sysprof!9
This commit is contained in:
Christian Hergert
2018-10-16 18:06:34 +00:00

View File

@ -128,7 +128,7 @@ if not get_option('buildtype').startswith('debug')
endif
foreach link_arg: test_link_args
if cc.links('int main () { return 0; }', name: link_arg, args: link_arg)
if cc.has_link_argument(link_arg)
global_link_args += link_arg
endif
endforeach