[gtk+/gtk-2-18] Fix up linker flags
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-18] Fix up linker flags
- Date: Thu, 7 Jan 2010 21:49:52 +0000 (UTC)
commit 3f935d85d3e2c13b4f6590db8d6efb118c6c8875
Author: Benjamin Otte <otte gnome org>
Date: Sat Dec 19 18:37:39 2009 +0100
Fix up linker flags
This adds LDFLAGS everywhere where they were previously pulled in via
other libraries. This is however unsupported by modern linkers.
You can trigger these failures by building with gold (or, I'm told, with
very new ld).
(cherry picked from commit 9e7c91bf83fd21a559b5658d02a1466deb4de919)
configure.in | 1 +
demos/Makefile.am | 4 +++-
demos/gtk-demo/Makefile.am | 3 ++-
docs/tools/Makefile.am | 3 ++-
gtk/Makefile.am | 5 +++--
gtk/tests/Makefile.am | 3 ++-
gtk/theme-bits/Makefile.am | 2 +-
perf/Makefile.am | 3 ++-
tests/Makefile.am | 3 ++-
9 files changed, 18 insertions(+), 9 deletions(-)
---
diff --git a/configure.in b/configure.in
index 893fd93..6f0f92b 100644
--- a/configure.in
+++ b/configure.in
@@ -580,6 +580,7 @@ case $host in
;;
esac
+AC_SUBST(MATH_LIB)
#
# see bug 162979
#
diff --git a/demos/Makefile.am b/demos/Makefile.am
index c8c9bbb..cbaeb00 100644
--- a/demos/Makefile.am
+++ b/demos/Makefile.am
@@ -19,7 +19,9 @@ DEPS = \
LDADDS = \
$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la \
$(top_builddir)/gdk/$(gdktargetlib) \
- $(top_builddir)/gtk/$(gtktargetlib)
+ $(top_builddir)/gtk/$(gtktargetlib) \
+ $(GTK_DEP_LIBS) \
+ $(MATH_LIB)
noinst_PROGRAMS = \
testpixbuf-drawable \
diff --git a/demos/gtk-demo/Makefile.am b/demos/gtk-demo/Makefile.am
index b2d8568..7b373e4 100644
--- a/demos/gtk-demo/Makefile.am
+++ b/demos/gtk-demo/Makefile.am
@@ -60,7 +60,8 @@ DEPS = \
LDADDS = \
$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la \
$(top_builddir)/gdk/$(gdktargetlib) \
- $(top_builddir)/gtk/$(gtktargetlib)
+ $(top_builddir)/gtk/$(gtktargetlib) \
+ $(GTK_DEP_LIBS)
bin_PROGRAMS = gtk-demo
diff --git a/docs/tools/Makefile.am b/docs/tools/Makefile.am
index 3b3c09b..66ba8b5 100644
--- a/docs/tools/Makefile.am
+++ b/docs/tools/Makefile.am
@@ -17,7 +17,8 @@ LDADDS = \
$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la \
$(top_builddir)/gdk/$(gdktargetlib) \
$(top_builddir)/gtk/$(gtktargetlib) \
- $(GTK_DEP_LIBS)
+ $(GTK_DEP_LIBS) \
+ $(GDK_DEP_LIBS)
if USE_X11
noinst_PROGRAMS = \
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index b6e32cf..9a34da9 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -939,7 +939,8 @@ TEST_DEPS = $(DEPS) gtk.immodules
LDADDS = \
$(gtktargetlib) \
$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la \
- $(top_builddir)/gdk/$(gdktargetlib)
+ $(top_builddir)/gdk/$(gdktargetlib) \
+ $(GTK_DEP_LIBS)
#
# Installed tools
@@ -988,7 +989,7 @@ gtk_query_immodules_2_0_LDADD = $(LDADDS)
gtk_query_immodules_2_0_SOURCES = queryimmodules.c
-gtk_update_icon_cache_LDADD = $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la
+gtk_update_icon_cache_LDADD = $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la $(LDADDS)
gtk_update_icon_cache_SOURCES = \
updateiconcache.c
diff --git a/gtk/tests/Makefile.am b/gtk/tests/Makefile.am
index c287c25..7056dcd 100644
--- a/gtk/tests/Makefile.am
+++ b/gtk/tests/Makefile.am
@@ -17,7 +17,8 @@ DEPS = \
progs_ldadd = \
$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la \
$(top_builddir)/gdk/$(gdktargetlib) \
- $(top_builddir)/gtk/$(gtktargetlib)
+ $(top_builddir)/gtk/$(gtktargetlib) \
+ $(GTK_DEP_LIBS)
noinst_PROGRAMS = $(TEST_PROGS)
diff --git a/gtk/theme-bits/Makefile.am b/gtk/theme-bits/Makefile.am
index 4ad0497..dee422e 100644
--- a/gtk/theme-bits/Makefile.am
+++ b/gtk/theme-bits/Makefile.am
@@ -8,7 +8,7 @@ INCLUDES = \
noinst_PROGRAMS = decompose-bits
decompose_bits_SOURCES = decompose-bits.c
-decompose_bits_LDADD = $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la
+decompose_bits_LDADD = $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la $(GLIB_LIBS)
EXTRA_DIST += check-13.png check-13-inconsistent.png radio-13.png radio-13-inconsistent.png
diff --git a/perf/Makefile.am b/perf/Makefile.am
index 934cf24..5662b32 100644
--- a/perf/Makefile.am
+++ b/perf/Makefile.am
@@ -18,7 +18,8 @@ DEPS = \
LDADDS = \
$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la \
$(top_builddir)/gdk/$(gdktargetlib) \
- $(top_builddir)/gtk/$(gtktargetlib)
+ $(top_builddir)/gtk/$(gtktargetlib) \
+ $(GTK_DEP_LIBS)
noinst_PROGRAMS = \
testperf
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 8956c65..e9da96d 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -18,7 +18,8 @@ DEPS = \
LDADDS = \
$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la \
$(top_builddir)/gdk/$(gdktargetlib) \
- $(top_builddir)/gtk/$(gtktargetlib)
+ $(top_builddir)/gtk/$(gtktargetlib) \
+ $(GTK_DEP_LIBS)
if USE_X11
testsocket_programs = testsocket testsocket_child
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]