--- cups-1.2b2/filter/Makefile.link	2006-03-23 11:42:25.000000000 +0000
+++ cups-1.2b2/filter/Makefile	2006-03-23 11:43:19.000000000 +0000
@@ -218,7 +218,7 @@
 
 libcupsimage.so.2 libcupsimage.sl.2:	$(IMAGEOBJS)
 	echo Linking $@...
-	$(DSO) $(ARCHFLAGS) $(DSOFLAGS) -o $@ $(IMAGEOBJS) $(DSOLIBS) -lm
+	$(DSO) $(ARCHFLAGS) $(DSOFLAGS) -o $@ $(IMAGEOBJS) $(DSOLIBS) -lm -L../cups -lcups
 	$(RM) `basename $@ .2`
 	$(LN) $@ `basename $@ .2`
 
