$NetBSD: patch-af,v 1.4 2008/01/11 01:23:44 adam Exp $ --- liboctave/Makefile.in.orig 2007-11-30 19:53:30.000000000 +0100 +++ liboctave/Makefile.in @@ -256,8 +256,9 @@ endif $(LIBPRE)octave.$(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:3.0.%=3:%} $(LIBPRE)octave.$(SHLEXT_VER): $(LIBPRE)octave.$(SHLEXT) rm -f $@ @@ -284,9 +285,8 @@ install-lib: $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octlibdir) if $(STATIC_LIBS); then \ rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(LIBEXT); \ - $(INSTALL_DATA) $(LIBPRE)octave.$(LIBEXT) \ - $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(LIBEXT); \ - $(RANLIB) $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(LIBEXT); \ + ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} liboctave.$(LIBEXT) \ + ${PREFIX}/lib; \ fi if $(SHARED_LIBS); then \ rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(SHLLIB_VER); \