From 42a92548912817162e20992582851a94bea56f62 Mon Sep 17 00:00:00 2001 From: Greg V Date: Thu, 2 Apr 2020 17:11:20 +0300 Subject: [PATCH] build-sys: meson: set HAVE_DLADDR even if it's in libc (FreeBSD), not libdl Part-of: --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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