[rygel] build: Stop leaking symbols in plugins



commit 1f142319a3cc21a82e434d19ae973b4517154bd3
Author: Jens Georg <mail jensge org>
Date:   Fri Apr 24 08:54:04 2015 +0200

    build: Stop leaking symbols in plugins

 configure.ac                            |    4 +++-
 rygel-server-2.6.pc.in                  |    1 +
 src/media-engines/gstreamer/Makefile.am |    2 +-
 src/media-engines/simple/Makefile.am    |    2 +-
 4 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c085ed5..a38a8ad 100644
--- a/configure.ac
+++ b/configure.ac
@@ -421,7 +421,9 @@ AS_IF([test "x$enable_apidocs" != "xno"], [
 AM_CONDITIONAL(ENABLE_VALADOC, test x$found_valadoc = xyes)
 
 AC_SUBST([RYGEL_PLUGIN_LINKER_FLAGS],
-         ["-module -avoid-version"])
+         ["-module -avoid-version -shared -export-dynamic -export-symbols-regex 'module_init'"])
+AC_SUBST([RYGEL_ENGINE_LINKER_FLAGS],
+         ["-module -avoid-version -shared -export-dynamic -export-symbols-regex 'module_get_instance'"])
 AC_SUBST([RYGEL_PLUGIN_DIR],
          [${libdir}/rygel-2.6/plugins])
 AC_SUBST([RYGEL_MEDIA_ENGINE_DIR],
diff --git a/rygel-server-2.6.pc.in b/rygel-server-2.6.pc.in
index 5bdeab0..c25ce1c 100644
--- a/rygel-server-2.6.pc.in
+++ b/rygel-server-2.6.pc.in
@@ -4,6 +4,7 @@ libdir= libdir@
 includedir= includedir@
 
 enginedir= RYGEL_MEDIA_ENGINE_DIR@
+engine_ldflags= RYGEL_ENGINE_LINKER_FLAGS@
 
 Name: rygel-server-2.6
 Description: GNOME (Mobile) UPnP/DLNA Media server library
diff --git a/src/media-engines/gstreamer/Makefile.am b/src/media-engines/gstreamer/Makefile.am
index d0f7268..cec5742 100644
--- a/src/media-engines/gstreamer/Makefile.am
+++ b/src/media-engines/gstreamer/Makefile.am
@@ -35,6 +35,6 @@ librygel_media_engine_gst_la_LIBADD = \
        $(RYGEL_COMMON_LIBRYGEL_SERVER_LIBS)
 
 librygel_media_engine_gst_la_LDFLAGS = \
-       $(RYGEL_PLUGIN_LINKER_FLAGS)
+       $(RYGEL_ENGINE_LINKER_FLAGS)
 
 EXTRA_DIST = media-engine-gst.plugin.in
diff --git a/src/media-engines/simple/Makefile.am b/src/media-engines/simple/Makefile.am
index 67b3dfb..c3a84c5 100644
--- a/src/media-engines/simple/Makefile.am
+++ b/src/media-engines/simple/Makefile.am
@@ -20,6 +20,6 @@ librygel_media_engine_simple_la_LIBADD = \
        $(LIBRYGEL_SERVER_DEPS_LIBS) \
        $(RYGEL_COMMON_LIBRYGEL_SERVER_LIBS)
 librygel_media_engine_simple_la_LDFLAGS = \
-       $(RYGEL_PLUGIN_LINKER_FLAGS)
+       $(RYGEL_ENGINE_LINKER_FLAGS)
 
 EXTRA_DIST = media-engine-simple.plugin.in


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]