Index: libgee-0.6.1/gee/Makefile.am
===================================================================
--- libgee-0.6.1.orig/gee/Makefile.am
+++ libgee-0.6.1/gee/Makefile.am
@@ -104,8 +104,8 @@ typelib_DATA = \
 	Gee-1.0.typelib \
 	$(NULL)
 
-Gee-1.0.typelib: Gee-1.0.gir
-	@INTROSPECTION_COMPILER@ --shared-library=libgee -o $@ $^
+Gee-1.0.typelib: Gee-1.0.gir libgee.la
+	@INTROSPECTION_COMPILER@ --shared-library=$(builddir)/libgee.la -o $@ $^
 endif
 
 EXTRA_DIST += $(libgee_la_VALASOURCES) gee-1.0.vapi Gee-1.0.gir gee.vala.stamp
