--- tevent/Makefile.in~	2009-06-19 05:36:48.000000000 +0100
+++ tevent/Makefile.in	2009-10-07 23:03:26.000000000 +0100
@@ -52,7 +52,7 @@
 
 install:: all
 $(TEVENT_SOLIB): $(TEVENT_OBJ)
-	$(SHLD) $(SHLD_FLAGS) $(LDFLAGS) $(LIBS) -o $@ $(TEVENT_OBJ) $(VERSIONSCRIPT) $(EXPORTSFILE) $(SONAMEFLAG)$(TEVENT_SONAME)
+	$(SHLD) $(SHLD_FLAGS) $(LDFLAGS) -o $@ $(TEVENT_OBJ) $(VERSIONSCRIPT) $(EXPORTSFILE) $(SONAMEFLAG)$(TEVENT_SONAME) $(LIBS)
 
 shared-build: all
 	${INSTALLCMD} -d $(sharedbuilddir)/lib
