$OpenBSD: patch-cups_Makefile,v 1.20 2019/12/13 22:30:45 ajacoutot Exp $

Index: cups/Makefile
--- cups/Makefile.orig
+++ cups/Makefile
@@ -365,11 +365,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`
 
 
 #
@@ -431,11 +429,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`
 
 
 #
