diff --git a/meson.build b/meson.build index 869178437..38d56bafb 100644 --- a/meson.build +++ b/meson.build @@ -431,7 +431,7 @@ if shm_dep.found() endif dl_dep = cc.find_library('dl', required : false) -if dl_dep.found() +if cc.has_function('dladdr', dependencies : dl_dep) cdata.set('HAVE_DLADDR', 1) endif