summaryrefslogtreecommitdiff
path: root/math/superlu_mt/files/patch-make.inc
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2017-06-17 08:34:19 +0000
committerThierry Thomas <thierry@FreeBSD.org>2017-06-17 08:34:19 +0000
commitf4547b0bb1aa9e19bc3d80d51e51a81581c43166 (patch)
tree09c061c19bf34cd6b3a4d83544d69da5ef0d08b4 /math/superlu_mt/files/patch-make.inc
parentDrop support for superlu_mt. (diff)
Update math/superlu_mt to version 3.1, along with some cleanups.
PR: 219265 Submitted by: pfg
Notes
Notes: svn path=/head/; revision=443735
Diffstat (limited to 'math/superlu_mt/files/patch-make.inc')
-rw-r--r--math/superlu_mt/files/patch-make.inc103
1 files changed, 49 insertions, 54 deletions
diff --git a/math/superlu_mt/files/patch-make.inc b/math/superlu_mt/files/patch-make.inc
index 23c7237fc353..9d88f8dfdd6d 100644
--- a/math/superlu_mt/files/patch-make.inc
+++ b/math/superlu_mt/files/patch-make.inc
@@ -1,62 +1,57 @@
---- make.inc.orig 2008-02-22 22:45:36 UTC
+--- make.inc.orig 2015-04-30 00:46:42 UTC
+++ make.inc
-@@ -16,13 +16,13 @@
- #
- # The machine (platform) identifier to append to the library names
- #
--PLAT = _sp
-+PLAT = _PTHREAD
-
- #
- # The name of the libraries to be created/linked to
- #
--TMGLIB = libtmglib.a
--SUPERLULIB = libsuperlu_mt$(PLAT).a
-+TMGLIB = libtmg.a
-+SUPERLULIB = libsuperlu_mt.a
-
- #
- # If you don't have ESSL, you can use the following blaslib instead:
-@@ -30,7 +30,7 @@ SUPERLULIB = libsuperlu_mt$(PLAT).a
- # which may be slower than ESSL
- #
- BLASDEF = -DUSE_VENDOR_BLAS
--BLASLIB = -lessl
-+BLASLIB = %%BLAS%%
- #BLASLIB = ../lib/libblas$(PLAT).a
- MATHLIB = -lm
- MPLIB = -lpthread
-@@ -38,7 +38,7 @@ MPLIB = -lpthread
+@@ -22,7 +22,7 @@ PLAT = _PTHREAD
+ TMGLIB = libtmglib$(PLAT).a
+ SUPERLULIB = libsuperlu_mt$(PLAT).a
+ BLASDEF = -DUSE_VENDOR_BLAS
+-BLASLIB = -L/usr/lib -lf77blas -latlas
++BLASLIB = %%BLAS%%
+ #BLASLIB = ../lib/libblas$(PLAT).a
+ MATHLIB = -lm
+ MPLIB = -lpthread
+@@ -31,7 +31,7 @@ MPLIB = -lpthread
# The archiver and the flag(s) to use when building archive (library)
# If your system has no ranlib, set RANLIB = echo.
#
--ARCH = ar
-+ARCMD = ar
- ARCHFLAGS = cr
- RANLIB = ranlib
+-ARCH = ar
++ARCMD = ar
+ ARCHFLAGS = cr
+ RANLIB = ranlib
-@@ -46,16 +46,17 @@ RANLIB = ranlib
- PREDEFS = -D_PTHREAD
- #
+@@ -40,8 +40,8 @@ RANLIB = ranlib
+ # Definitions used by CPP:
+ PREDEFS = -D__PTHREAD ## -DDEBUGlevel=0 -DPRNTlevel=0
+ #
+-CC = gcc
+-CFLAGS = $(PREDEFS) -g #-O3
++CC = %%CC%%
++CFLAGS = $(PREDEFS) %%CFLAGS%%
+ # Uncomment the following to use 64-bit integer
+ CFLAGS += -D_LONGINT
--CC = xlc_r
--CFLAGS = -qarch=pwr5 -qalias=allptrs $(PREDEFS) -DPRNTlevel=0 -O3
--FORTRAN = xlf
--FFLAGS = -O3 -qarch=pwr5
--LOADER = xlc_r
--LOADOPTS = -bmaxdata:0x80000000
-+CC = %%CC%%
-+CFLAGS = $(PREDEFS) %%CPPFLAGS%% %%CFLAGS%%
-+FORTRAN = %%FC%%
-+FFLAGS = %%FFLAGS%%
-+LOADER = %%CC%%
-+LOADOPTS = %%LDFLAGS%%
-+NOOPTS = %%FPIC%%
- #
- # C preprocessor defs for compilation for the Fortran interface
- # (-DNoChange, -DAdd_, -DAdd__, or -DUpCase)
- #
--CDEFS = -DNoChange
-+CDEFS = -DAdd_
+@@ -49,19 +49,19 @@ CFLAGS += -D_LONGINT
+ # There are a few files that should NOT be optimized, which appear in the
+ # end of SRC/Makefile, taking the flag $(NOOPTS)
+ # NOOPTS should be defined to explicitly turn off any optimization.
+-NOOPTS = -O0
++NOOPTS = -O0 %%FPIC%%
+
+-BLASOPTS =
++BLASOPTS =
+
+ ############################################################################
+-FORTRAN = gfortran
+-FFLAGS = -O -fdefault-integer-8
++FORTRAN = %%FC%%
++FFLAGS = %%FFLAGS%% -fdefault-integer-8
+ ############################################################################
+
+-LOADER = gcc
+-LOADOPTS = -O #-pthread
++LOADER = %%CC%%
++LOADOPTS = -O %%LDFLAGS%%
+
+ ############################################################################
+ #