From: Maya Rashish Date: Tue, 3 Sep 2019 08:55:34 +0000 (+0300) Subject: meson: Test for -Wl,--build-id=sha1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0330461c9a8fcc86227489b35ff143e5d7ee2ab;p=mesa.git meson: Test for -Wl,--build-id=sha1 instead of hard-coding OS list. Helps Solaris ld builds. Reviewed-by: Eric Engestrom Reviewed-by: Erik Faye-Lund Signed-off-by: Maya Rashish --- diff --git a/meson.build b/meson.build index 9fe017d5455..5ceda5c7969 100644 --- a/meson.build +++ b/meson.build @@ -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