[Xfce4-commits] <xfce4-screenshooter:master> Fix panel plugin build.

Jérôme Guelfucci noreply at xfce.org
Sat May 5 17:16:01 CEST 2012


Updating branch refs/heads/master
         to 08053be7adc6d4a83191efed735c3f565bcbcf1f (commit)
       from b397f09bc157a41e058775da61cb4d469926220b (commit)

commit 08053be7adc6d4a83191efed735c3f565bcbcf1f
Author: Samuli Suominen <ssuominen at gentoo.org>
Date:   Sat May 5 17:13:45 2012 +0200

    Fix panel plugin build.
    
    - Don't use a versioned library.
    - Build as a module.
    - Only export needed symbols.

 Makefile.am |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 45100fd..d0c0adb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -132,13 +132,19 @@ panel_plugin_libscreenshooterplugin_la_CFLAGS =	\
 	@SOUP_CFLAGS@
 
 panel_plugin_libscreenshooterplugin_la_LDFLAGS = \
+	-avoid-version \
+	-module \
+	-no-undefined \
+	-export-symbols-regex '^xfce_panel_module_(preinit|init|construct)' \
+	$(PLATFORM_LDFLAGS)
+
+panel_plugin_libscreenshooterplugin_la_LIBADD = \
 	@EXO_LIBS@ \
 	@LIBXFCE4PANEL_LIBS@ \
 	@GTHREAD_LIBS@ \
 	@SOUP_LIBS@ \
-	@LIBXFCE4UI_LIBS@
-
-panel_plugin_libscreenshooterplugin_la_LIBADD = lib/libscreenshooter.la
+	@LIBXFCE4UI_LIBS@ \
+	lib/libscreenshooter.la
 
 panel_plugin_libscreenshooterplugin_la_SOURCES = \
 	panel-plugin/screenshooter-plugin.c


More information about the Xfce4-commits mailing list