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