diff -Naur -x '*~' -x '*.orig' -x '*.rej' grisbi-0.6.0rc2/configure.in grisbi-0.6.0rc2-asneeded/configure.in
--- grisbi-0.6.0rc2/configure.in	2010-01-30 09:16:49.000000000 +0100
+++ grisbi-0.6.0rc2-asneeded/configure.in	2010-03-22 21:25:59.000000000 +0100
@@ -33,9 +33,11 @@
 dnl Standard GTK checks
 dnl
 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.2.0 glib-2.0 >= 2.2)
-LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
+LDFLAGS="${LDFLAGS}"
 CFLAGS="${CFLAGS} ${GTK_CFLAGS}"
 
+AC_SUBST(GTK_LIBS)
+
 
 dnl
 dnl Check whether GLib modules are supported, to determine whether we
@@ -45,7 +47,7 @@
 ac_save_CFLAGS="$CFLAGS"
 ac_save_LIBS="$LIBS"
 CFLAGS="$CFLAGS $GLIB_CFLAGS"
-LIBS="$GLIB_LIBS $LIBS"
+LIBS="$GLIB_LIBS $GTK_LIBS $LIBS"
 AC_TRY_RUN([
 #include <glib.h>
 #include <gmodule.h>
diff -Naur -x '*~' -x '*.orig' -x '*.rej' grisbi-0.6.0rc2/src/Makefile.am grisbi-0.6.0rc2-asneeded/src/Makefile.am
--- grisbi-0.6.0rc2/src/Makefile.am	2010-01-24 11:58:01.000000000 +0100
+++ grisbi-0.6.0rc2-asneeded/src/Makefile.am	2010-03-22 21:21:33.000000000 +0100
@@ -8,6 +8,8 @@
 # configure right now because of no doc.
 grisbi_LDFLAGS = @lt_prog_compiler_wl@@export_dynamic_flag_spec@
 
+grisbi_LDADD = $(GTK_LIBS)
+
 config_dir = config
 
 sources = \
