[PATCH] Explicitly link against GTK+ and libgvnc
- From: Guido Günther <agx sigxcpu org>
- To: gtk-vnc-list gnome org
- Subject: [PATCH] Explicitly link against GTK+ and libgvnc
- Date: Thu, 23 Jun 2011 17:28:56 +0200
Otherwise we're seeing errors like:
make[2]: Entering directory `/var/scratch/debian/gtk-vnc/upstream/gtk-vnc/examples'
CC gvncviewer-gvncviewer.o
CCLD gvncviewer
/usr/bin/ld: gvncviewer-gvncviewer.o: undefined reference to symbol 'gtk_label_set_text'
/usr/bin/ld: note: 'gtk_label_set_text' is defined in DSO /usr/lib/libgtk-3.so.0 so try adding it to the linker command line
/usr/lib/libgtk-3.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
with recent binutils.
Can this be applied?
Cheers,
-- Guido
---
examples/Makefile.am | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 8b26e41..12aa20b 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -6,7 +6,10 @@ noinst_PROGRAMS = gvncviewer
endif
gvncviewer_SOURCES = gvncviewer.c
-gvncviewer_LDADD = ../src/libgtk-vnc-$(GTK_VNC_API_VERSION).la @GTK_CFLAGS@ \
+gvncviewer_LDADD = ../src/libgtk-vnc-$(GTK_VNC_API_VERSION).la \
+ ../src/libgvnc-1.0.la \
+ @GTK_CFLAGS@ \
+ @GTK_LIBS@ \
@VIEW_LIBS@
gvncviewer_CFLAGS = @GTK_CFLAGS@ @WARNING_CFLAGS@ \
@VIEW_CFLAGS@ -I$(top_srcdir)/src/
--
1.7.5.4
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]