--- a/gck/Makefile.am
+++ b/gck/Makefile.am
@@ -62,7 +62,11 @@
 	gck-test.c \
 	gck-test.h
 libgck_testable_la_LIBADD = \
-	$(libgck_la_OBJECTS)
+	$(libgck_la_OBJECTS) \
+	$(top_builddir)/egg/libegg-hex.la \
+	$(GOBJECT_LIBS) \
+	$(GIO_LIBS) \
+	$(GLIB_LIBS)
 
 gck-marshal.h: gck-marshal.list $(GLIB_GENMARSHAL)
 	$(GLIB_GENMARSHAL) $< --header --prefix=_gck_marshal > $@
