Mesa (master): Meson: Check for dladdr with MinGW

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Nov 23 15:38:38 UTC 2019


Module: Mesa
Branch: master
Commit: bfd9f3201e49cd3f46393b7737cd156a69e9f5ab
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bfd9f3201e49cd3f46393b7737cd156a69e9f5ab

Author: Michel Zou <xantares09 at hotmail.com>
Date:   Mon Nov 11 22:14:55 2019 +0100

Meson: Check for dladdr with MinGW

Reviewed-by: Eric Engestrom <eric at engestrom.ch>

---

 meson.build | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/meson.build b/meson.build
index 39907709f71..69d15649060 100644
--- a/meson.build
+++ b/meson.build
@@ -1223,14 +1223,12 @@ ld_args_build_id = cc.get_supported_link_arguments('-Wl,--build-id=sha1')
 
 # check for dl support
 dep_dl = null_dep
-if host_machine.system() != 'windows'
-  if not cc.has_function('dlopen')
-    dep_dl = cc.find_library('dl')
-  endif
-  if cc.has_function('dladdr', dependencies : dep_dl)
-    # This is really only required for megadrivers
-    pre_args += '-DHAVE_DLADDR'
-  endif
+if not cc.has_function('dlopen')
+  dep_dl = cc.find_library('dl', required : host_machine.system() != 'windows')
+endif
+if cc.has_function('dladdr', dependencies : dep_dl)
+  # This is really only required for megadrivers
+  pre_args += '-DHAVE_DLADDR'
 endif
 
 if cc.has_function('dl_iterate_phdr')




More information about the mesa-commit mailing list