summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-04-05 16:12:51 -0700
committerDylan Baker <dylan@pnwbakers.com>2018-05-17 11:06:01 -0700
commitfefb32ff20d5006304c9fff76ef07d8f8b52b465 (patch)
treea7492d9581a0b8eaff4dc4aeb9c78ba50d90858a
parentc1ca113a3d0b6e2a872e8b8bfb4465f9e695819f (diff)
meson: fix dl detection on non cygwin windows
-rw-r--r--meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index cfe4ecefd4..1d262fbc0e 100644
--- a/meson.build
+++ b/meson.build
@@ -984,9 +984,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'
# This is really only required for megadrivers
pre_args += '-DHAVE_DLADDR'
endif