[libsocialweb] build: explicitly check for and link to gmodule



commit fc6600170bd463c589e218ef43de65637564420f
Author: Alexandre Rostovtsev <tetromino gentoo org>
Date:   Fri Oct 19 21:46:28 2012 -0400

    build: explicitly check for and link to gmodule
    
    Needed to prevent underlinking failure with ld.gold and recent versions
    of libsocialweb's dependencies.
    
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=686503
    [adjusted to use gmodule-no-export, not gmodule -smcv]
    Signed-off-by: Simon McVittie <simon mcvittie collabora co uk>
    Reviewed-by: Ross Burton <ross burtonini com>

 configure.ac             |    1 +
 libsocialweb/Makefile.am |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 51a3f35..732abea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -65,6 +65,7 @@ GOBJECT_INTROSPECTION_CHECK([0.9.6])
 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.14)
 PKG_CHECK_MODULES(GIO, gio-2.0)
 PKG_CHECK_MODULES(GOBJECT, gobject-2.0 >= 2.14)
+PKG_CHECK_MODULES(GMODULE, gmodule-no-export-2.0)
 PKG_CHECK_MODULES(SOUP, libsoup-2.4 gthread-2.0)
 PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1)
 PKG_CHECK_MODULES(REST, rest-0.7 rest-extras-0.7 >= 0.7.10)
diff --git a/libsocialweb/Makefile.am b/libsocialweb/Makefile.am
index fa7d88b..57d0d34 100644
--- a/libsocialweb/Makefile.am
+++ b/libsocialweb/Makefile.am
@@ -10,12 +10,12 @@ libsocialweb_ladir = $(pkgincludedir)/libsocialweb
 libsocialweb_la_CFLAGS = -I$(top_srcdir) -I$(top_srcdir)/interfaces \
                     $(DBUS_GLIB_CFLAGS) $(SOUP_CFLAGS) $(SOUP_GNOME_CFLAGS) \
                     $(NM_CFLAGS) $(GTK_CFLAGS) $(REST_CFLAGS) \
-                    $(GCOV_CFLAGS) \
+                    $(GMODULE_CFLAGS) $(GCOV_CFLAGS) \
                     -DSOCIALWEB_SERVICES_MODULES_DIR=\"$(servicesdir)\"
 
 libsocialweb_la_LIBADD = $(DBUS_GLIB_LIBS) $(SOUP_LIBS) $(SOUP_GNOME_LIBS) \
                      $(NM_LIBS) $(GTK_LIBS) $(REST_LIBS) \
-                     $(GCOV_LDFLAGS) \
+                     $(GMODULE_LIBS) $(GCOV_LDFLAGS) \
                      $(top_builddir)/interfaces/libsocialweb-ginterfaces.la
 
 libsocialweb_la_SOURCES = sw-types.h \


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