[vlc-devel] [PATCH] pulse: Fix linking on OSX
Vittorio Giovara
vittorio.giovara at gmail.com
Sun Oct 2 03:41:57 CEST 2016
---
I am not sure this is the right way, but the default configure enable
libpulse which uses vlc_tdestroy without linking the core.
Vittorio
configure.ac | 2 ++
modules/services_discovery/Makefile.am | 3 +++
2 files changed, 5 insertions(+)
diff --git a/configure.ac b/configure.ac
index 2e6eb2b..9b8a0e9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -808,6 +808,8 @@ dnl
dnl POSIX
AC_CHECK_HEADERS([arpa/inet.h pthread.h search.h sys/shm.h sys/socket.h sys/uio.h])
+AM_CONDITIONAL([HAVE_NOTDESTROY], [test "$have_search_h" = "yes" && test "$have_tdestroy" = "no"])
+
AC_CHECK_HEADERS([net/if.h], [], [],
[
#include <sys/types.h>
diff --git a/modules/services_discovery/Makefile.am b/modules/services_discovery/Makefile.am
index 2bdc75f..41cdc02 100644
--- a/modules/services_discovery/Makefile.am
+++ b/modules/services_discovery/Makefile.am
@@ -35,6 +35,9 @@ EXTRA_LTLIBRARIES += libupnp_plugin.la
sd_LTLIBRARIES += $(LTLIBupnp)
libpulselist_plugin_la_SOURCES = services_discovery/pulse.c
+if HAVE_NOTDESTROY
+libpulselist_plugin_la_SOURCES += ../src/extras/tdestroy.c
+endif
libpulselist_plugin_la_CFLAGS = $(AM_CFLAGS) $(PULSE_CFLAGS)
libpulselist_plugin_la_LIBADD = libvlc_pulse.la $(PULSE_LIBS)
if HAVE_PULSE
--
2.10.0
More information about the vlc-devel
mailing list