diff -up gcr-3.3.1/gcr/Makefile.am.fix-build gcr-3.3.1/gcr/Makefile.am
--- gcr-3.3.1/gcr/Makefile.am.fix-build	2011-11-10 20:43:29.714330890 -0500
+++ gcr-3.3.1/gcr/Makefile.am	2011-11-10 20:52:24.259338910 -0500
@@ -204,7 +204,12 @@ libgcr_testable_la_SOURCES =
 libgcr_testable_la_LIBADD = \
 	$(libgcr_base_@GCR_MAJOR@_la_OBJECTS) \
 	$(libgcr_@GCR_MAJOR@_la_OBJECTS) \
-	$(libgcr_@GCR_MAJOR@_la_LIBADD)
+	$(top_builddir)/egg/libegg.la \
+	$(top_builddir)/gck/libgck-@GCK_MAJOR@.la \
+	$(GLIB_LIBS) \
+	$(LIBGCRYPT_LIBS) \
+	$(P11_KIT_LIBS)
+
 libgcr_testable_la_DEPENDENCIES = \
 	$(libgcr_base_@GCR_MAJOR@_la_OBJECTS) \
 	$(libgcr_@GCR_MAJOR@_la_OBJECTS)
