build-sys: meson: add execinfo dependency for FreeBSD

For 'backtrace' and related symbols

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>
This commit is contained in:
Greg V 2020-04-02 17:34:32 +03:00 committed by PulseAudio Marge Bot
parent 207c4cabde
commit 51fecacd46
2 changed files with 4 additions and 1 deletions

View file

@ -457,6 +457,9 @@ size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, si
endif
endif
# Used for backtraces on BSD
execinfo_dep = cc.find_library('execinfo', required : false)
# Atomic operations
if get_option('atomic-arm-memory-barrier')

View file

@ -201,7 +201,7 @@ libpulsecommon = shared_library('pulsecommon-' + pa_version_major_minor,
dependencies : [
libm_dep, thread_dep, dl_dep, shm_dep, iconv_dep, sndfile_dep, dbus_dep,
x11_dep, libsystemd_dep, glib_dep, gtk_dep, asyncns_dep, libintl_dep,
platform_dep, platform_socket_dep,
platform_dep, platform_socket_dep, execinfo_dep,
],
implicit_include_directories : false)