90cece7
From 08053be7adc6d4a83191efed735c3f565bcbcf1f Mon Sep 17 00:00:00 2001
90cece7
From: Samuli Suominen <ssuominen@gentoo.org>
90cece7
Date: Sat, 05 May 2012 15:13:45 +0000
90cece7
Subject: Fix panel plugin build.
90cece7
90cece7
- Don't use a versioned library.
90cece7
- Build as a module.
90cece7
- Only export needed symbols.
90cece7
---
90cece7
diff --git a/Makefile.am b/Makefile.am
90cece7
index 45100fd..d0c0adb 100644
90cece7
--- a/Makefile.am
90cece7
+++ b/Makefile.am
90cece7
@@ -132,13 +132,19 @@ panel_plugin_libscreenshooterplugin_la_CFLAGS =	\
90cece7
 	@SOUP_CFLAGS@
90cece7
 
90cece7
 panel_plugin_libscreenshooterplugin_la_LDFLAGS = \
90cece7
+	-avoid-version \
90cece7
+	-module \
90cece7
+	-no-undefined \
90cece7
+	-export-symbols-regex '^xfce_panel_module_(preinit|init|construct)' \
90cece7
+	$(PLATFORM_LDFLAGS)
90cece7
+
90cece7
+panel_plugin_libscreenshooterplugin_la_LIBADD = \
90cece7
 	@EXO_LIBS@ \
90cece7
 	@LIBXFCE4PANEL_LIBS@ \
90cece7
 	@GTHREAD_LIBS@ \
90cece7
 	@SOUP_LIBS@ \
90cece7
-	@LIBXFCE4UI_LIBS@
90cece7
-
90cece7
-panel_plugin_libscreenshooterplugin_la_LIBADD = lib/libscreenshooter.la
90cece7
+	@LIBXFCE4UI_LIBS@ \
90cece7
+	lib/libscreenshooter.la
90cece7
 
90cece7
 panel_plugin_libscreenshooterplugin_la_SOURCES = \
90cece7
 	panel-plugin/screenshooter-plugin.c
90cece7
--
90cece7
cgit v0.9.1