diff options
author | maho <maho@FreeBSD.org> | 2012-03-14 09:44:37 +0800 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2012-03-14 09:44:37 +0800 |
commit | 388dd91f4a4812ba62d44711f3211da5f1634ecb (patch) | |
tree | bdc6f0d03317590a0b37f65748b1bbca2d540e84 /math | |
parent | 2d8dc2f1bfee7fc7c560f2a59d55892cbe093208 (diff) | |
download | freebsd-ports-gnome-388dd91f4a4812ba62d44711f3211da5f1634ecb.tar.gz freebsd-ports-gnome-388dd91f4a4812ba62d44711f3211da5f1634ecb.tar.zst freebsd-ports-gnome-388dd91f4a4812ba62d44711f3211da5f1634ecb.zip |
also build shared object instead of only the static archive
PR: 166010
Submitted by: Oliver Hartmann <ohartman@zedat.fu-berlin.de>
Feature safe: yes
Diffstat (limited to 'math')
-rw-r--r-- | math/superlu/files/patch-SRC-Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/math/superlu/files/patch-SRC-Makefile b/math/superlu/files/patch-SRC-Makefile new file mode 100644 index 000000000000..43c1b6af03de --- /dev/null +++ b/math/superlu/files/patch-SRC-Makefile @@ -0,0 +1,44 @@ +--- SRC/Makefile.orig 2006-01-06 00:09:14.000000000 +0100 ++++ SRC/Makefile 2012-03-13 15:14:50.000000000 +0100 +@@ -89,28 +89,31 @@ + zcolumn_dfs.o zcolumn_bmod.o zpivotL.o zpruneL.o \ + zmemory.o zutil.o zmyblas2.o + +-all: single double complex complex16 ++all: single double complex complex16 shared + + single: $(SLUSRC) $(ALLAUX) $(LAAUX) $(SLASRC) $(SCLAUX) +- $(ARCH) $(ARCHFLAGS) ../$(SUPERLULIB) \ ++ $(ARCMD) $(ARCHFLAGS) ../$(SUPERLULIB) \ + $(SLUSRC) $(ALLAUX) $(LAAUX) $(SLASRC) $(SCLAUX) + $(RANLIB) ../$(SUPERLULIB) + + double: $(DLUSRC) $(ALLAUX) $(LAAUX) $(DLASRC) $(DZLAUX) +- $(ARCH) $(ARCHFLAGS) ../$(SUPERLULIB) \ ++ $(ARCMD) $(ARCHFLAGS) ../$(SUPERLULIB) \ + $(DLUSRC) $(ALLAUX) $(LAAUX) $(DLASRC) $(DZLAUX) + $(RANLIB) ../$(SUPERLULIB) + + complex: $(CLUSRC) $(ALLAUX) $(LAAUX) $(CLASRC) $(SCLAUX) +- $(ARCH) $(ARCHFLAGS) ../$(SUPERLULIB) \ ++ $(ARCMD) $(ARCHFLAGS) ../$(SUPERLULIB) \ + $(CLUSRC) $(ALLAUX) $(LAAUX) $(CLASRC) $(SCLAUX) + $(RANLIB) ../$(SUPERLULIB) + + complex16: $(ZLUSRC) $(ALLAUX) $(LAAUX) $(ZLASRC) $(DZLAUX) +- $(ARCH) $(ARCHFLAGS) ../$(SUPERLULIB) \ ++ $(ARCMD) $(ARCHFLAGS) ../$(SUPERLULIB) \ + $(ZLUSRC) $(ALLAUX) $(LAAUX) $(ZLASRC) $(DZLAUX) + $(RANLIB) ../$(SUPERLULIB) + ++shared: single double complex complex16 ++ $(CC) -shared -Wl,-soname=$(SUPERLULIB_SHARED) -o ../$(SUPERLULIB_SHARED) ../$(SUPERLULIB) ++ + + ################################## + # Do not optimize these routines # +@@ -125,3 +128,4 @@ + + clean: + rm -f *.o ../libsuperlu_3.0.a ++ rm -f *.o ../libsuperlu_3.0.so |