pkgsrc/math/octave-current/patches/patch-af
adam ec0da1b7c9 Changes 2.1.63:
* Bug fixes
2004-11-25 12:59:21 +00:00

28 lines
1,022 B
Text

$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); \