blob: c338a6faa07c5da603dff586d9c9617282e9c33e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
$NetBSD: patch-ad,v 1.5 2009/01/27 12:04:14 asau Exp $
--- libcruft/Makefile.in.orig 2008-09-24 11:13:46.000000000 +0400
+++ libcruft/Makefile.in 2009-01-27 04:57:30.000000000 +0300
@@ -121,8 +121,8 @@
$(LIBPRE)cruft.$(LIBEXT): $(CRUFT_OBJ)
rm -f $@
- $(AR) $(ARFLAGS) $@ $^
- $(RANLIB) $@
+ ${LIBTOOL} --mode=link ${CC} -o libcruft.$(LIBEXT) $(CRUFT_OBJ:.o=.lo) \
+ -rpath ${PREFIX}/lib -version-info ${version:3.0.%=3:%}
$(LIBPRE)cruft.$(SHLEXT_VER): $(LIBPRE)cruft.$(SHLEXT)
rm -f $@
@@ -147,9 +147,8 @@
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(octlibdir)
if $(STATIC_LIBS); then \
rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(LIBEXT) ; \
- $(INSTALL_DATA) $(LIBPRE)cruft.$(LIBEXT) \
- $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(LIBEXT) ; \
- $(RANLIB) $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(LIBEXT) ; \
+ ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libcruft.$(LIBEXT) \
+ ${DESTDIR}${PREFIX}/lib; \
fi
if $(SHARED_LIBS); then \
rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(SHLLIB_VER); \
|