diff --git a/tool/Makefile.am b/tool/Makefile.am
index 0b517c9..0bc3912 100644
--- a/tool/Makefile.am
+++ b/tool/Makefile.am
@@ -20,6 +20,7 @@ gnome_keyring_@GCR_MAJOR@_CFLAGS = \
 	-DGNOMELOCALEDIR=\""$(datadir)/locale"\"
 
 gnome_keyring_@GCR_MAJOR@_LDADD = \
+	$(top_builddir)/gcr/libgcr-base-@GCR_MAJOR@.la \
 	$(top_builddir)/gcr/libgcr-@GCR_MAJOR@.la \
 	$(top_builddir)/egg/libegg.la \
 	$(top_builddir)/gck/libgck-@GCK_MAJOR@.la \
diff --git a/ui/Makefile.am b/ui/Makefile.am
index 941791c..ad9d680 100644
--- a/ui/Makefile.am
+++ b/ui/Makefile.am
@@ -63,6 +63,7 @@ gnome_keyring_prompt_@GCR_MAJOR@_SOURCES = \
 gnome_keyring_prompt_@GCR_MAJOR@_LDADD = \
 	$(top_builddir)/egg/libegg-entry-buffer.la \
 	$(top_builddir)/egg/libegg-prompt.la \
+	$(top_builddir)/gcr/libgcr-base-@GCR_MAJOR@.la \
 	$(top_builddir)/gcr/libgcr-@GCR_MAJOR@.la \
 	$(top_builddir)/gck/libgck-@GCK_MAJOR@.la \
 	$(LIBGCRYPT_LIBS) \
