mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
build: Check relro support using cc.has_link_argument
Meson 0.46 added cc.has_link_argument, which allows us to get rid of the cc.links hack.
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user