[Mesa-dev] [PATCH v3 08/48] meson: fix dl detection on non cygwin windows

Dylan Baker dylan at pnwbakers.com
Tue Aug 7 00:50:48 UTC 2018


---
 meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index c7dd5ddfec6..788021c05e9 100644
--- a/meson.build
+++ b/meson.build
@@ -1027,9 +1027,9 @@ endif
 if cc.has_function('dlopen')
   dep_dl = null_dep
 else
-  dep_dl = cc.find_library('dl')
+  dep_dl = cc.find_library('dl', required : host_machine.system() != 'windows')
 endif
-if cc.has_function('dladdr', dependencies : dep_dl)
+if host_machine.system() != 'windows' and cc.has_function('dladdr', dependencies : dep_dl)
   # This is really only required for megadrivers
   pre_args += '-DHAVE_DLADDR'
 endif
-- 
2.18.0



More information about the mesa-dev mailing list