Don't build plugins with SONAME. Make them plain *.so.
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Tue, 4 May 2010 14:59:27 +0000 (14:59 +0000)
committerGwenole Beauchesne <gbeauchesne@splitted-desktop.com>
Mon, 20 Sep 2010 10:55:44 +0000 (12:55 +0200)
configure.ac
debian.upstream/gstreamer-vaapi.install.in
gst/vaapiconvert/Makefile.am
gst/vaapidecode/Makefile.am
gst/vaapisink/Makefile.am

index 980fc72..2bdbe9a 100644 (file)
@@ -154,6 +154,18 @@ PKG_CHECK_MODULES([GST_VIDEO],
 AC_SUBST(GST_VIDEO_CFLAGS)
 AC_SUBST(GST_VIDEO_LIBS)
 
+dnl GST_ALL_LDFLAGS:
+dnl LDFLAGS really should only contain flags, not libs - they get added before
+dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
+GST_ALL_LDFLAGS="-no-undefined"
+AC_SUBST(GST_ALL_LDFLAGS)
+
+dnl GST_PLUGIN_LDFLAGS:
+dnl this really should only contain flags, not libs - they get added before
+dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
+GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^([_]*gst_plugin_desc|gst_.*_get_type)\$\$' $GST_ALL_LDFLAGS"
+AC_SUBST(GST_PLUGIN_LDFLAGS)
+
 dnl Check for the GStreamer plugins directory
 AC_MSG_CHECKING([for GStreamer plugins directory])
 GST_PLUGINS_DIR=`$PKG_CONFIG gstreamer-$GST_MAJORMINOR --variable pluginsdir`
index 76b63bd..5af8fbb 100644 (file)
@@ -1 +1 @@
-debian/tmp/usr/lib/gstreamer-@GST_MAJORMINOR@/libgstvaapi*.so*
+debian/tmp/usr/lib/gstreamer-@GST_MAJORMINOR@/libgstvaapi*.so
index 74e3d37..34a8659 100644 (file)
@@ -28,6 +28,7 @@ libgstvaapiconvert_la_LIBADD =        \
        $(GST_VIDEO_LIBS)       \
        $(GST_PLUGINS_BASE_LIBS)
 
+libgstvaapiconvert_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 libgstvaapiconvert_la_LIBTOOLFLAGS = --tag=disable-static
 
 # Extra clean files so that maintainer-clean removes *everything*
index b5a230e..b1fd20d 100644 (file)
@@ -28,6 +28,7 @@ libgstvaapidecode_la_LIBADD = \
        $(GST_VIDEO_LIBS)       \
        $(GST_PLUGINS_BASE_LIBS)
 
+libgstvaapidecode_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 libgstvaapidecode_la_LIBTOOLFLAGS = --tag=disable-static
 
 # Extra clean files so that maintainer-clean removes *everything*
index 3265f33..c1298b9 100644 (file)
@@ -31,6 +31,7 @@ libgstvaapisink_la_LIBADD =   \
        $(GST_VIDEO_LIBS)       \
        $(GST_PLUGINS_BASE_LIBS)
 
+libgstvaapisink_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 libgstvaapisink_la_LIBTOOLFLAGS = --tag=disable-static
 
 # Extra clean files so that maintainer-clean removes *everything*