Module: Mesa Branch: master Commit: c0330461c9a8fcc86227489b35ff143e5d7ee2ab URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c0330461c9a8fcc86227489b35ff143e5d7ee2ab
Author: Maya Rashish <[email protected]> Date: Tue Sep 3 11:55:34 2019 +0300 meson: Test for -Wl,--build-id=sha1 instead of hard-coding OS list. Helps Solaris ld builds. Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Erik Faye-Lund <[email protected]> Signed-off-by: Maya Rashish <[email protected]> --- meson.build | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
