summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2022-11-20 12:04:04 -0600
committersfan5 <sfan5@live.de>2023-01-24 15:56:56 +0100
commitf5ce1fbf4439068715d8a73b2ec05aa67ac88fc3 (patch)
tree06cbc022a97b163d4705f6e36c877c5fb60ab0f1
parent214e47854a579437069b0024350f3e3d93c2b33a (diff)
downloadmpv-f5ce1fbf4439068715d8a73b2ec05aa67ac88fc3.tar.bz2
mpv-f5ce1fbf4439068715d8a73b2ec05aa67ac88fc3.tar.xz
meson: unbreak dl check on BSDs without libdl
Regression from 1835dfc05c8298262dbf8e08a31d61bbfecdb30b. The actual libdl dependency is not always required for the function symbol check. Fixes #10901.
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 14b9616f92..c2916d5fb9 100644
--- a/meson.build
+++ b/meson.build
@@ -327,7 +327,7 @@ endif
features += {'ta-leak-report': get_option('ta-leak-report')}
libdl_dep = cc.find_library('dl', required: false)
-features += {'libdl': libdl_dep.found() and cc.has_function('dlopen', dependencies: libdl_dep, prefix: '#include <dlfcn.h>')}
+features += {'libdl': cc.has_function('dlopen', dependencies: libdl_dep, prefix: '#include <dlfcn.h>')}
if features['libdl']
dependencies += libdl_dep
endif