openbsd-ports/math/octave/patches/patch-liboctave_Makefile_in
steven 4cdf618554 SHARED_LIBS
tested and ok sturm@
2005-12-24 20:05:27 +00:00

39 lines
1.4 KiB
Plaintext

$OpenBSD: patch-liboctave_Makefile_in,v 1.3 2005/12/24 20:05:27 steven Exp $
--- liboctave/Makefile.in.orig Fri Nov 11 20:47:31 2005
+++ liboctave/Makefile.in Sat Dec 24 13:08:00 2005
@@ -185,6 +185,9 @@ pic:
stamp-prereq: $(OPTS_INC) $(VX_OP_INC) $(VX_OP_SRC) $(MX_OP_INC) $(MX_OP_SRC) mx-ops.h
touch stamp-prereq
+SHLLIB_VER=$(SHLEXT).$(LIBoctave_VERSION)
+SHLEXT_VER=$(SHLLIB_VER)
+
ifeq ($(SHARED_LIBS), true)
ifeq ($(STATIC_LIBS), true)
libraries: \
@@ -211,12 +214,8 @@ liboctave.$(LIBEXT): $(LIBOCTAVE_OBJECTS
$(TEMPLATE_AR) $(TEMPLATE_ARFLAGS) $@ $(LIBOCTAVE_OBJECTS)
$(RANLIB) $@
-liboctave.$(SHLEXT_VER): liboctave.$(SHLEXT)
+liboctave.$(SHLEXT_VER): $(LIBOCTAVE_PICOBJ)
rm -f $@
- $(LN_S) $< $@
-
-liboctave.$(SHLEXT): $(LIBOCTAVE_PICOBJ)
- rm -f $@
$(SH_LD) $(SH_LDFLAGS) $(SONAME_FLAGS) -o $@ \
$(LIBOCTAVE_PICOBJ) $(LINK_DEPS)
@@ -243,9 +242,7 @@ install-lib:
if $(SHARED_LIBS); then \
rm -f $(DESTDIR)$(octlibdir)/liboctave.$(SHLLIB_VER); \
$(INSTALL) \
- liboctave.$(SHLLIB) $(DESTDIR)$(octlibdir)/liboctave.$(SHLLIB_VER); \
- rm -f $(DESTDIR)$(octlibdir)/liboctave.$(SHLLIB); \
- $(LN_S) liboctave.$(SHLLIB_VER) $(DESTDIR)$(octlibdir)/liboctave.$(SHLLIB); \
+ liboctave.$(SHLLIB_VER) $(DESTDIR)$(octlibdir)/liboctave.$(SHLLIB_VER); \
if test x$(SHLBIN) != x ; then \
rm -f $(DESTDIR)$(bindir)/liboctave.$(SHLBIN); \
$(INSTALL_PROGRAM) \