blob: ef769c72c7fcd4ac8b886f86e0a9a0012621fddc (
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.4 2008/01/11 01:23:44 adam Exp $
--- libcruft/Makefile.in.orig 2007-10-12 23:27:12.000000000 +0200
+++ libcruft/Makefile.in
@@ -121,8 +121,8 @@ libraries: cruft.def
$(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 @@ install::
$(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) \
+ ${PREFIX}/lib; \
fi
if $(SHARED_LIBS); then \
rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(SHLLIB_VER); \
|