modules: link to pthread only when needed
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 22 Sep 2013 15:52:25 +0000 (18:52 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 22 Sep 2013 15:52:25 +0000 (18:52 +0300)
modules/access/Makefile.am
modules/access/rtp/Makefile.am
modules/access_output/Modules.am
modules/common.am
modules/lua/Makefile.am
modules/misc/Modules.am
modules/services_discovery/Makefile.am
modules/stream_filter/Makefile.am
modules/stream_out/Modules.am
modules/video_filter/Modules.am
modules/visualization/Modules.am

index eef8e38..6b48799 100644 (file)
@@ -108,7 +108,7 @@ EXTRA_LTLIBRARIES += libdc1394_plugin.la
 
 libdv1394_plugin_la_SOURCES = access/dv.c
 libdv1394_plugin_la_CFLAGS = $(AM_CFLAGS) $(DV1394_CFLAGS)
-libdv1394_plugin_la_LIBADD = $(DV1394_LIBS)
+libdv1394_plugin_la_LIBADD = $(DV1394_LIBS) $(LIBPTHREAD)
 libdv1394_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
 access_LTLIBRARIES += $(LTLIBdv1394)
 EXTRA_LTLIBRARIES += libdv1394_plugin.la
@@ -158,7 +158,7 @@ libv4l2_plugin_la_SOURCES = \
        access/v4l2/v4l2.h
 libv4l2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/access/v4l2
 libv4l2_plugin_la_CFLAGS = $(AM_CFLAGS) $(ZVBI_CFLAGS)
-libv4l2_plugin_la_LIBADD = $(LIBDL) $(LIBM) $(ZVBI_LIBS)
+libv4l2_plugin_la_LIBADD = $(LIBDL) $(LIBM) $(ZVBI_LIBS) $(LIBPTHREAD)
 if HAVE_V4L2
 access_LTLIBRARIES += libv4l2_plugin.la
 endif
@@ -373,7 +373,7 @@ libtcp_plugin_la_LIBADD = $(SOCKET_LIBS)
 access_LTLIBRARIES += libtcp_plugin.la
 
 libudp_plugin_la_SOURCES = access/udp.c
-libudp_plugin_la_LIBADD = $(SOCKET_LIBS)
+libudp_plugin_la_LIBADD = $(SOCKET_LIBS) $(LIBPTHREAD)
 access_LTLIBRARIES += libudp_plugin.la
 
 libsftp_plugin_la_SOURCES = access/sftp.c
index 235822a..634b2f3 100644 (file)
@@ -10,14 +10,14 @@ librtp_plugin_la_SOURCES = \
        session.c \
        xiph.c
 librtp_plugin_la_CFLAGS = $(AM_CFLAGS)
-librtp_plugin_la_LIBADD = $(SOCKET_LIBS)
+librtp_plugin_la_LIBADD = $(SOCKET_LIBS) $(LIBPTHREAD)
 
 # Secure RTP library
 libvlc_srtp_la_SOURCES = srtp.c
 libvlc_srtp_la_CPPFLAGS =
 libvlc_srtp_la_CFLAGS = $(GCRYPT_CFLAGS)
 libvlc_srtp_la_LDFLAGS = -static
-libvlc_srtp_la_LIBADD = $(GCRYPT_LIBS)
+libvlc_srtp_la_LIBADD = $(GCRYPT_LIBS) $(LIBPTHREAD)
 srtp_test_recv_CPPFLAGS =
 srtp_test_recv_LDADD = libvlc_srtp.la
 srtp_test_aes_CPPFLAGS =
index fdb4b06..9bf25fc 100644 (file)
@@ -9,7 +9,7 @@ access_output_LTLIBRARIES += \
        libaccess_output_http_plugin.la
 
 libaccess_output_udp_plugin_la_SOURCES = udp.c
-libaccess_output_udp_plugin_la_LIBADD = $(SOCKET_LIBS)
+libaccess_output_udp_plugin_la_LIBADD = $(SOCKET_LIBS) $(LIBPTHREAD)
 access_output_LTLIBRARIES += libaccess_output_udp_plugin.la
 
 libaccess_output_livehttp_plugin_la_SOURCES = livehttp.c
index e6d03dd..94fb399 100644 (file)
@@ -31,7 +31,7 @@ AM_LDFLAGS = \
        -export-symbols-regex ^vlc_entry \
        -shrext $(LIBEXT) \
        -no-undefined \
-       $(LTLIBVLCCORE) $(top_builddir)/compat/libcompat.la $(LIBPTHREAD)
+       $(LTLIBVLCCORE) $(top_builddir)/compat/libcompat.la
 if HAVE_WIN32
 AM_LDFLAGS += $(top_builddir)/modules/module.rc.lo
 endif
index 006587b..9f83626 100644 (file)
@@ -35,7 +35,7 @@ if HAVE_WIN32
 liblua_plugin_la_SOURCES += libs/win.c
 endif
 liblua_plugin_la_CFLAGS = $(AM_CFLAGS) $(LUA_CFLAGS)
-liblua_plugin_la_LIBADD = $(LUA_LIBS) $(SOCKET_LIBS) $(LIBDL) $(LIBM)
+liblua_plugin_la_LIBADD = $(LUA_LIBS) $(SOCKET_LIBS) $(LIBDL) $(LIBM) $(LIBPTHREAD)
 #if BUILD_LUA
 lua_LTLIBRARIES = liblua_plugin.la
 #endif
index aa317c3..e5a082b 100644 (file)
@@ -3,7 +3,7 @@ SOURCES_vod_rtsp = rtsp.c
 SOURCES_xml = xml/libxml.c
 
 libaudioscrobbler_plugin_la_SOURCES = audioscrobbler.c
-libaudioscrobbler_plugin_la_LIBADD = $(SOCKET_LIBS)
+libaudioscrobbler_plugin_la_LIBADD = $(SOCKET_LIBS) $(LIBPTHREAD)
 misc_LTLIBRARIES += libaudioscrobbler_plugin.la
 
 libexport_plugin_la_SOURCES = \
@@ -16,7 +16,7 @@ misc_LTLIBRARIES += libexport_plugin.la
 libfingerprinter_plugin_la_SOURCES = fingerprinter.c \
        webservices/acoustid.c webservices/acoustid.h \
        webservices/json.c webservices/json.h
-libfingerprinter_plugin_la_LIBADD = $(LIBM)
+libfingerprinter_plugin_la_LIBADD = $(LIBM) $(LIBPTHREAD)
 misc_LTLIBRARIES += libfingerprinter_plugin.la
 
 libgnutls_plugin_la_SOURCES = gnutls.c dhparams.h
index 7135843..11fca94 100644 (file)
@@ -5,6 +5,7 @@ libmediadirs_plugin_la_SOURCES = services_discovery/mediadirs.c
 sd_LTLIBRARIES += libmediadirs_plugin.la
 
 libpodcast_plugin_la_SOURCES = services_discovery/podcast.c
+libpodcast_plugin_la_LIBADD = $(LIBPTHREAD)
 sd_LTLIBRARIES += libpodcast_plugin.la
 
 libsap_plugin_la_SOURCES = services_discovery/sap.c
index 159e823..def4803 100644 (file)
@@ -4,6 +4,7 @@ stream_filterdir = $(pluginsdir)/stream_filter
 stream_filter_LTLIBRARIES =
 
 libdecomp_plugin_la_SOURCES = decomp.c
+libdecomp_plugin_la_LIBADD = $(LIBPTHREAD)
 if !HAVE_WIN32
 stream_filter_LTLIBRARIES += libdecomp_plugin.la
 endif
index 9e24033..0d9cd8a 100644 (file)
@@ -45,7 +45,7 @@ stream_out_LTLIBRARIES += \
 libstream_out_rtp_plugin_la_SOURCES = \
        rtp.c rtp.h rtpfmt.c rtcp.c rtsp.c vod.c
 libstream_out_rtp_plugin_la_CFLAGS = $(AM_CFLAGS)
-libstream_out_rtp_plugin_la_LIBADD = $(SOCKET_LIBS)
+libstream_out_rtp_plugin_la_LIBADD = $(SOCKET_LIBS) $(LIBPTHREAD)
 if HAVE_GCRYPT
 SRTP_CFLAGS = -I$(top_srcdir)/modules/access/rtp
 SRTP_LIBS = $(top_builddir)/modules/access/rtp/libvlc_srtp.la
index 9caf978..9e329c8 100644 (file)
@@ -43,7 +43,7 @@ endif
 
 libremoteosd_plugin_la_SOURCES = remoteosd.c remoteosd_rfbproto.h
 libremoteosd_plugin_la_CFLAGS = $(AM_CFLAGS) $(GCRYPT_CFLAGS)
-libremoteosd_plugin_la_LIBADD = $(GCRYPT_LIBS) $(LIBS_remoteosd)
+libremoteosd_plugin_la_LIBADD = $(GCRYPT_LIBS) $(LIBS_remoteosd) $(LIBPTHREAD)
 if HAVE_GCRYPT
 video_filter_LTLIBRARIES += libremoteosd_plugin.la
 endif
index 37fe765..b5de5b4 100644 (file)
@@ -2,7 +2,7 @@ SOURCES_goom = goom.c
 
 libprojectm_plugin_la_SOURCES = projectm.cpp
 libprojectm_plugin_la_CXXFLAGS = $(AM_CXXFLAGS) $(PROJECTM_CFLAGS)
-libprojectm_plugin_la_LIBADD = $(PROJECTM_LIBS)
+libprojectm_plugin_la_LIBADD = $(PROJECTM_LIBS) $(LIBPTHREAD)
 EXTRA_LTLIBRARIES += libprojectm_plugin.la
 visualization_LTLIBRARIES += $(LTLIBprojectm)