diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-09-01 12:55:15 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-09-01 12:55:15 +0000 |
commit | 526c85132de0a63a11dddc6e59ac67c94d2e0959 (patch) | |
tree | 82e130e03044262aea8d502c680d9e9d2934de3f /lib | |
parent | 06fa0adc4ed11abe7aeadcae33a77a1166c664c4 (diff) |
conditionally define HAVE_LD_BUILD_ID if supported
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mesa/meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mesa/meson.build b/lib/mesa/meson.build index f4fae204f..227fe73e2 100644 --- a/lib/mesa/meson.build +++ b/lib/mesa/meson.build @@ -1243,7 +1243,9 @@ if cc.links('int main() { return 0; }', endif ld_args_build_id = cc.get_supported_link_arguments('-Wl,--build-id=sha1') -pre_args += '-DHAVE_LD_BUILD_ID' +if ld_args_build_id.length() != 0 + pre_args += '-DHAVE_LD_BUILD_ID' +endif # check for dl support dep_dl = null_dep |