4cdf618554
tested and ok sturm@
39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
$OpenBSD: patch-libcruft_Makefile_in,v 1.4 2005/12/24 20:05:27 steven Exp $
|
|
--- libcruft/Makefile.in.orig Fri Nov 11 20:47:15 2005
|
|
+++ libcruft/Makefile.in Sat Dec 24 12:28:55 2005
|
|
@@ -78,6 +78,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 = libcruft.$(LIBEXT) libcruft.$(SHLEXT_VER)
|
|
@@ -101,12 +104,8 @@ libcruft.$(LIBEXT): $(CRUFT_OBJ)
|
|
$(AR) $(ARFLAGS) $@ $^
|
|
$(RANLIB) $@
|
|
|
|
-libcruft.$(SHLEXT_VER): libcruft.$(SHLEXT)
|
|
+libcruft.$(SHLEXT_VER): $(CRUFT_PICOBJ)
|
|
rm -f $@
|
|
- $(LN_S) $< $@
|
|
-
|
|
-libcruft.$(SHLEXT): $(CRUFT_PICOBJ)
|
|
- rm -f $@
|
|
$(SH_LD) $(SH_LDFLAGS) $(SONAME_FLAGS) -o $@ $^ $(LINK_DEPS)
|
|
|
|
$(CRUFT_OBJ):
|
|
@@ -131,9 +130,7 @@ install::
|
|
if $(SHARED_LIBS); then \
|
|
rm -f $(DESTDIR)$(octlibdir)/libcruft.$(SHLLIB_VER); \
|
|
$(INSTALL) \
|
|
- libcruft.$(SHLLIB) $(DESTDIR)$(octlibdir)/libcruft.$(SHLLIB_VER); \
|
|
- rm -f $(DESTDIR)$(octlibdir)/libcruft.$(SHLLIB); \
|
|
- $(LN_S) libcruft.$(SHLLIB_VER) $(DESTDIR)$(octlibdir)/libcruft.$(SHLLIB); \
|
|
+ libcruft.$(SHLLIB_VER) $(DESTDIR)$(octlibdir)/libcruft.$(SHLLIB_VER); \
|
|
if test x$(SHLBIN) != x ; then \
|
|
rm -f $(DESTDIR)$(bindir)/libcruft.$(SHLBIN); \
|
|
$(INSTALL_PROGRAM) \
|