build-sys: meson: set HAVE_DLADDR even if it's in libc (FreeBSD), not libdl
authorGreg V <greg@unrelenting.technology>
Thu, 2 Apr 2020 14:11:20 +0000 (17:11 +0300)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Mon, 18 Jan 2021 16:33:52 +0000 (16:33 +0000)
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>

meson.build

index 8691784..38d56ba 100644 (file)
@@ -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