40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
$OpenBSD: patch-libcruft_Makefile_in,v 1.5 2007/06/20 08:51:42 steven Exp $
|
|
--- libcruft/Makefile.in.orig Wed Apr 4 18:10:26 2007
|
|
+++ libcruft/Makefile.in Sat May 26 22:33:24 2007
|
|
@@ -82,6 +82,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)
|
|
@@ -111,12 +114,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):
|
|
@@ -141,10 +140,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) \
|