diff -up ./cogl/Makefile.in.orig ./cogl/Makefile.in
--- ./cogl/Makefile.in.orig	2011-08-13 08:54:30.410224205 +0000
+++ ./cogl/Makefile.in	2011-08-13 08:55:11.471640173 +0000
@@ -996,7 +996,7 @@ clean-noinstLTLIBRARIES:
 	  rm -f "$${dir}/so_locations"; \
 	done
 libcogl.la: $(libcogl_la_OBJECTS) $(libcogl_la_DEPENDENCIES) 
-	$(AM_V_CCLD)$(libcogl_la_LINK) -rpath $(libdir) $(libcogl_la_OBJECTS) $(libcogl_la_LIBADD) $(LIBS)
+	$(AM_V_CCLD)$(libcogl_la_LINK) -rpath $(libdir) $(libcogl_la_OBJECTS) $(libcogl_la_LIBADD) $(GLIB_LIBS) $(LIBS)
 
 mostlyclean-compile:
 	-rm -f *.$(OBJEXT)
