From 04f765da6fb407c7ebe1833403a6049e2c9df6ce Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Sun, 20 Nov 2022 12:04:04 -0600 Subject: [PATCH] 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. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ')} +features += {'libdl': cc.has_function('dlopen', dependencies: libdl_dep, prefix: '#include ')} if features['libdl'] dependencies += libdl_dep endif