Index: cups/Makefile
--- cups/Makefile.orig
+++ cups/Makefile
@@ -355,11 +355,9 @@ uninstall:
 # libcups.so.2
 #
 
-libcups.so.2:	$(LIBOBJS)
+libcups.so.${LIBcups_VERSION}:	$(LIBOBJS)
 	echo Linking $@...
 	$(DSO) $(ARCHFLAGS) $(ALL_DSOFLAGS) -o $@ $(LIBOBJS) $(LIBS)
-	$(RM) `basename $@ .2`
-	$(LN) $@ `basename $@ .2`
 
 
 #
@@ -421,11 +419,9 @@ libcups2.def: $(LIBOBJS) $(IMAGEOBJS) Makefile
 # libcupsimage.so.2
 #
 
-libcupsimage.so.2:	$(IMAGEOBJS) libcups.so.2
+libcupsimage.so.${LIBcupsimage_VERSION}:	$(IMAGEOBJS) libcups.so.${LIBcups_VERSION}
 	echo Linking $@...
 	$(DSO) $(ARCHFLAGS) $(ALL_DSOFLAGS) -o $@ $(IMAGEOBJS) $(LINKCUPS)
-	$(RM) `basename $@ .2`
-	$(LN) $@ `basename $@ .2`
 
 
 #
