meson: Test for -Wl,--build-id=sha1

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>
This commit is contained in:
Maya Rashish 2019-09-03 11:55:34 +03:00 committed by Eric Engestrom
parent 4913ad9a37
commit c0330461c9

View 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