[gtk+/gtk-2-24] build: Fix building with the gold linker by referencing gmodule-2.0



commit 65ea14d42151941a2c53843b13b244f38ece3b9d
Author: Emanuele Aina <emanuele aina collabora com>
Date:   Tue Jan 29 14:56:14 2013 +0100

    build: Fix building with the gold linker by referencing gmodule-2.0
    
    With the binutils-gold linker the '--no-copy-dt-needed-entries' flag is
    active by default and using any symbol from indirectly loaded libraries
    will result in undefined reference errors.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=692810

 gtk/Makefile.am |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 908291f..9aeada7 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -51,6 +51,7 @@ INCLUDES =						\
 	-DGTK_DISABLE_DEPRECATED			\
 	-DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED		\
 	-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED		\
+	$(GMODULE_CFLAGS)				\
 	$(GTK_DEBUG_FLAGS)				\
 	$(GTK_DEP_CFLAGS)				\
 	$(INCLUDED_IMMODULE_DEFINE)
@@ -120,6 +121,7 @@ endif
 libgtkincludedir = $(includedir)/gtk-2.0/gtk
 libadd =								\
 	$(top_builddir)/gdk/$(gdktargetlib)				\
+	$(GMODULE_LIBS) \
 	$(GTK_DEP_LIBS)
 deps =
 



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