diff --git a/docs/reference/Makefile.am b/docs/reference/Makefile.am
index 43b568d..c46c9db 100644
--- a/docs/reference/Makefile.am
+++ b/docs/reference/Makefile.am
@@ -56,17 +56,19 @@ extra_files =
 # if $(DOC_MODULE).types is non-empty.
 GTKDOC_CFLAGS =				\
 	-I$(top_srcdir)			\
 	-I$(top_builddir)		\
 	$(GLIB_CFLAGS)			\
 	$(XML_CFLAGS)			\
 	$(GNUTLS_CFLAGS)
 
-GTKDOC_LIBS = $(top_builddir)/libsoup/libsoup-gnome-2.4.la
+GTKDOC_LIBS = $(top_builddir)/libsoup/libsoup-gnome-2.4.la \
+			  $(top_builddir)/libsoup/libsoup-2.4.la \
+			  $(GLIB_LIBS)
 
 # include common portion ...
 include $(top_srcdir)/gtk-doc.make
 
 # kludges
 $(srcdir)/tmpl/*.sgml:
 
 clean: clean-am
