summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg V <greg@unrelenting.technology>2020-04-02 17:11:20 +0300
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>2021-01-18 16:33:52 +0000
commit42a92548912817162e20992582851a94bea56f62 (patch)
treea129d3215eef9ff8afb7af8f3f44122aa664a731
parentac7f2d96c7fc2d83f4a9fd74724ceaa9a634fe72 (diff)
build-sys: meson: set HAVE_DLADDR even if it's in libc (FreeBSD), not libdl
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
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