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>
This commit is contained in:
Greg V 2020-04-02 17:11:20 +03:00 committed by PulseAudio Marge Bot
parent ac7f2d96c7
commit 42a9254891

View file

@ -431,7 +431,7 @@ if shm_dep.found()
endif endif
dl_dep = cc.find_library('dl', required : false) 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) cdata.set('HAVE_DLADDR', 1)
endif endif