[gtk+] Fix linking of drawing example



commit d45a0114a500342699b66d0c034d67ad8055f60e
Author: Martin Pitt <martin pitt ubuntu com>
Date:   Wed Jan 19 15:40:46 2011 +0100

    Fix linking of drawing example
    
    Commit 80e1340e introduced using a GDK method in examples/drawing.c, so
    actually link that to GDK. Fixes build failure with --as-needed linker option
    and gcc 4.5.

 examples/Makefile.am |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 948d58a..440197f 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -48,6 +48,9 @@ LDADD = \
 	$(top_builddir)/gtk/libgtk-3.0.la	\
 	$(GTK_DEP_LIBS)
 
+drawing_LDADD = $(LDADD) \
+	$(top_builddir)/gdk/libgdk-3.0.la
+
 noinst_PROGRAMS = \
 	hello-world				\
 	window-default				\



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