From 0fa5bfae247b6b997a81902dd29d4a29cbe16e0c Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Fri, 28 Oct 2022 22:01:25 -0500 Subject: [PATCH] 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. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index f38f2d9237..574baf2bb3 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('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 ')} if features['libdl'] dependencies += libdl_dep