mirror of
https://github.com/mpv-player/mpv
synced 2025-02-14 10:57:32 +00:00
meson: use 'dl' instead of 'libdl' in find_library
Meson's master branch helpfully prints out a warning here now saying that "find_library('libdl') starting in "lib" only works by accident and is not portable". We'll go ahead and trust them and instead change this to dl which works with no issues.
This commit is contained in:
parent
6ebc4928c5
commit
0fa5bfae24
@ -327,7 +327,7 @@ endif
|
||||
|
||||
features += {'ta-leak-report': get_option('ta-leak-report')}
|
||||
|
||||
libdl_dep = cc.find_library('libdl', required: false)
|
||||
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>')}
|
||||
if features['libdl']
|
||||
dependencies += libdl_dep
|
||||
|
Loading…
Reference in New Issue
Block a user