summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg V <greg@unrelenting.technology>2020-04-02 17:34:32 +0300
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>2021-01-18 16:33:53 +0000
commit51fecacd4698258a3df2ba9d7326d2fa613174a0 (patch)
treeca777045ca3006c691ece1c7fbd899209baf6055
parent207c4cabdedcb71bb1da2ccaa2cef4c2f063c311 (diff)
build-sys: meson: add execinfo dependency for FreeBSD
For 'backtrace' and related symbols Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>
-rw-r--r--meson.build3
-rw-r--r--src/meson.build2
2 files changed, 4 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 2f9106a57..3d3128d2b 100644
--- a/meson.build
+++ b/meson.build
@@ -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')
diff --git a/src/meson.build b/src/meson.build
index 0842db297..6bde61839 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -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)