[gst-cvs] gst-plugins-ugly: asfdemux: link to all required libraries including indirectly used ones.

Michael Smith msmith at kemper.freedesktop.org
Wed Apr 8 11:46:25 PDT 2009


Module: gst-plugins-ugly
Branch: master
Commit: 6b9c72619adf1d4e5923feb0202894873e3121b5
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-ugly/commit/?id=6b9c72619adf1d4e5923feb0202894873e3121b5

Author: Michael Smith <msmith at songbirdnest.com>
Date:   Wed Apr  8 11:44:53 2009 -0700

asfdemux: link to all required libraries including indirectly used ones.

On win32, we're required to link to all the libraries used - including
ones only indirectly used by other libs. So, add gstaudio, gsttag, and
(for windows only) winsock.

---

 configure.ac             |    7 +++++++
 gst/asfdemux/Makefile.am |    3 ++-
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 345975d..b3856dc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -204,6 +204,13 @@ AG_GST_CHECK_PLUGIN(mpegstream)
 AG_GST_CHECK_PLUGIN(realmedia)
 AG_GST_CHECK_PLUGIN(synaesthesia)
 
+AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes)
+
+if test "x$HAVE_WINSOCK2_H" = "xyes"; then
+  WIN32_LIBS="-lws2_32"
+  AC_SUBST(WIN32_LIBS)
+fi
+
 dnl disable experimental plug-ins
 if test "x$BUILD_EXPERIMENTAL" != "xyes"; then
   AG_GST_DISABLE_PLUGIN(synaesthesia)
diff --git a/gst/asfdemux/Makefile.am b/gst/asfdemux/Makefile.am
index 638d332..79ac35c 100644
--- a/gst/asfdemux/Makefile.am
+++ b/gst/asfdemux/Makefile.am
@@ -4,7 +4,8 @@ libgstasf_la_SOURCES = gstasfdemux.c gstasf.c asfheaders.c asfpacket.c gstrtpasf
 libgstasf_la_CFLAGS = $(GST_BASE_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
 libgstasf_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS)\
 		-lgstriff- at GST_MAJORMINOR@ -lgstrtsp- at GST_MAJORMINOR@ -lgstsdp- at GST_MAJORMINOR@ \
-		-lgstrtp- at GST_MAJORMINOR@
+		-lgstrtp- at GST_MAJORMINOR@ -lgstaudio- at GST_MAJORMINOR@ -lgsttag- at GST_MAJORMINOR@ \
+		$(WIN32_LIBS)
 libgstasf_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 libgstasf_la_LIBTOOLFLAGS = --tag=disable-static
 





More information about the Gstreamer-commits mailing list