--- Makefile.in.orig    2005-09-27 16:10:18.761429000 +0100
+++ Makefile.in 2005-09-27 16:10:50.664941000 +0100
@@ -58,7 +58,7 @@
        rm -f y.tab.h

 flowd: flowd-config.h $(LIBFLOWD_HEADERS) $(FLOWD_OBJS) libflowd.a
-       $(CC) $(LDFLAGS) -L. -o $@ $(FLOWD_OBJS) -lflowd $(LIBS)
+       $(CC) $(LDFLAGS) -L. -o $@ $(FLOWD_OBJS) libflowd.a $(LIBS)

 flowd-reader: flowd-config.h $(LIBFLOWD_HEADERS) $(FLOWD_READER_OBJS) libflowd.a
        $(CC) $(LDFLAGS) -L. -o $@ $(FLOWD_READER_OBJS) libflowd.a $(LIBS)
