$OpenBSD: patch-libcruft_Makefile_in,v 1.6 2008/01/21 18:30:13 steven Exp $ --- libcruft/Makefile.in.orig Fri Oct 12 23:27:12 2007 +++ libcruft/Makefile.in Sat Dec 29 17:13:51 2007 @@ -95,6 +95,9 @@ ifeq ($(SHARED_LIBS), true) endif endif +SHLLIB_VER=$(SHLEXT).$(LIBcruft_VERSION) +SHLEXT_VER=$(SHLLIB_VER) + ifeq ($(SHARED_LIBS), true) ifeq ($(STATIC_LIBS), true) LIBRARIES = $(LIBPRE)cruft.$(LIBEXT) $(LIBPRE)cruft.$(SHLEXT_VER) @@ -124,12 +127,8 @@ $(LIBPRE)cruft.$(LIBEXT): $(CRUFT_OBJ) $(AR) $(ARFLAGS) $@ $^ $(RANLIB) $@ -$(LIBPRE)cruft.$(SHLEXT_VER): $(LIBPRE)cruft.$(SHLEXT) +$(LIBPRE)cruft.$(SHLEXT_VER): $(CRUFT_PICOBJ) rm -f $@ - $(LN_S) $< $@ - -$(LIBPRE)cruft.$(SHLEXT): $(CRUFT_PICOBJ) - rm -f $@ $(SH_LD) $(SH_LDFLAGS) $(SONAME_FLAGS) -o $@ $^ $(LINK_DEPS) $(CRUFT_OBJ): @@ -154,10 +153,7 @@ install:: if $(SHARED_LIBS); then \ rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(SHLLIB_VER); \ $(INSTALL) \ - $(LIBPRE)cruft.$(SHLLIB) $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(SHLLIB_VER); \ - rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(SHLLIB); \ - (cd $(DESTDIR)$(octlibdir); \ - $(LN_S) $(LIBPRE)cruft.$(SHLLIB_VER) $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(SHLLIB)); \ + $(LIBPRE)cruft.$(SHLLIB_VER) $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(SHLLIB_VER); \ if test x$(SHLBIN) != x ; then \ rm -f $(DESTDIR)$(bindir)/$(LIBPRE)cruft.$(SHLBIN); \ $(INSTALL_PROGRAM) \