[Xfce4-commits] [panel-plugins/xfce4-quicklauncher-plugin] 01/01: use new-style constructs for building as a module

noreply at xfce.org noreply at xfce.org
Wed Feb 18 22:12:09 CET 2015


This is an automated email from the git hooks/post-receive script.

landry pushed a commit to branch master
in repository panel-plugins/xfce4-quicklauncher-plugin.

commit 12ced60e1a4a14ac0a8a246de41ac2e588486b58
Author: Landry Breuil <landry at xfce.org>
Date:   Wed Feb 18 22:11:40 2015 +0100

    use new-style constructs for building as a module
    
    note that git master still doesnt build because quicklauncher relies on #defines removed from the outdated libxfce4gui...
---
 configure.ac.in          |    7 +++++--
 panel-plugin/Makefile.am |    6 +++++-
 panel-plugin/main.c      |    2 +-
 3 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/configure.ac.in b/configure.ac.in
index 8cf5d4f..61aab2d 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -28,8 +28,11 @@ AC_DISABLE_STATIC
 dnl Check for basic programs
 AC_PROG_CC
 AC_PROG_INSTALL
-AC_PROG_INTLTOOL()
-AC_PROG_LIBTOOL
+AC_PROG_INTLTOOL
+
+dnl Initialize libtool
+LT_PREREQ([2.2.6])
+LT_INIT([disable-static])
 
 dnl configure the panel plugin
 XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-1.0], [4.3.20])
diff --git a/panel-plugin/Makefile.am b/panel-plugin/Makefile.am
index 52be90f..00b67e6 100644
--- a/panel-plugin/Makefile.am
+++ b/panel-plugin/Makefile.am
@@ -6,7 +6,11 @@ plugin_LTLIBRARIES =							\
 
 libquicklauncher_la_LDFLAGS =							\
 	-avoid-version							\
-	-module
+	-module \
+	-no-undefined \
+	-export-symbols-regex '^xfce_panel_module_(preinit|init|construct)' \
+	$(PLATFORM_LDFLAGS)
+
 
 libquicklauncher_la_SOURCES =							\
 	callbacks.c							\
diff --git a/panel-plugin/main.c b/panel-plugin/main.c
index 191124e..337d3f0 100644
--- a/panel-plugin/main.c
+++ b/panel-plugin/main.c
@@ -75,7 +75,7 @@ quicklauncher_configure(XfcePanelPlugin *plugin, t_quicklauncher *quicklauncher)
 static void
 quicklauncher_about(XfcePanelPlugin *plugin, t_quicklauncher *quicklauncher);
 
-XFCE_PANEL_PLUGIN_REGISTER_INTERNAL(quicklauncher_construct);
+XFCE_PANEL_PLUGIN_REGISTER(quicklauncher_construct);
 
 /* create widgets and connect to signals */
 static void

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list