meson: Test for -Wl,--build-id=sha1
authorMaya Rashish <coypu@sdf.org>
Tue, 3 Sep 2019 08:55:34 +0000 (11:55 +0300)
committerEric Engestrom <eric@engestrom.ch>
Mon, 30 Sep 2019 18:38:14 +0000 (18:38 +0000)
instead of hard-coding OS list. Helps Solaris ld builds.

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Signed-off-by: Maya Rashish <coypu@sdf.org>
meson.build

index 9fe017d54555a3722eeb5b257ed03b4064d0e6aa..5ceda5c79694a4f5576ec4302706b593b860d2f3 100644 (file)
@@ -1123,10 +1123,8 @@ if cc.links('int main() { return 0; }',
             name : 'dynamic-list')
   with_ld_dynamic_list = true
 endif
-ld_args_build_id = []
-if build_machine.system() != 'darwin'
-   ld_args_build_id += '-Wl,--build-id=sha1'
-endif
+
+ld_args_build_id = cc.get_supported_link_arguments('-Wl,--build-id=sha1')
 
 # check for dl support
 dep_dl = null_dep