blob: a96cd83a3a603c9459894290f3458c8760efffbb (
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
28
|
$NetBSD: patch-af,v 1.7 2004/11/25 12:59:21 adam Exp $
--- liboctave/Makefile.in.orig 2004-11-12 05:34:57.000000000 +0000
+++ liboctave/Makefile.in
@@ -208,8 +208,9 @@ endif
liboctave.$(LIBEXT): $(LIBOCTAVE_OBJECTS)
rm -f $@
- $(TEMPLATE_AR) $(TEMPLATE_ARFLAGS) $@ $(LIBOCTAVE_OBJECTS)
- $(RANLIB) $@
+ ${LIBTOOL} --mode=link ${CC} -o liboctave.$(LIBEXT) \
+ $(LIBOCTAVE_OBJECTS:.o=.lo) -rpath ${PREFIX}/lib \
+ -version-info ${version:2.1.%=2:%}
liboctave.$(SHLEXT_VER): liboctave.$(SHLEXT)
rm -f $@
@@ -236,9 +237,8 @@ install-lib:
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(octlibdir)
if $(STATIC_LIBS); then \
rm -f $(DESTDIR)$(octlibdir)/liboctave.$(LIBEXT); \
- $(INSTALL_DATA) liboctave.$(LIBEXT) \
- $(DESTDIR)$(octlibdir)/liboctave.$(LIBEXT); \
- $(RANLIB) $(DESTDIR)$(octlibdir)/liboctave.$(LIBEXT); \
+ ${LIBTOOL} --mode=install $(INSTALL_DATA) liboctave.$(LIBEXT) \
+ ${PREFIX}/lib; \
fi
if $(SHARED_LIBS); then \
rm -f $(DESTDIR)$(octlibdir)/liboctave.$(SHLLIB_VER); \
|