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:
Dudemanguy 2022-10-28 22:01:25 -05:00
parent 6ebc4928c5
commit 0fa5bfae24
1 changed files with 1 additions and 1 deletions

View File

@ -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