summaryrefslogtreecommitdiff
path: root/math/superlu_mt/files/patch-make.inc
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2008-07-02 02:32:04 +0000
committerMaho Nakata <maho@FreeBSD.org>2008-07-02 02:32:04 +0000
commit3952097d3287346fdbff2200416c69e6d56e51d5 (patch)
treeb35be0b3a784a8b0404a742e114da73537d2f49d /math/superlu_mt/files/patch-make.inc
parentUpdate net/samba3 to the 3.0.30. Problems, addressed in this version: (diff)
* Enhancements to math/superlu_mt [1].
* Making shared lib. * Select BLAS. PR: 124785 [1] Submitted by: "Pedro F. Giffuni" <giffunip@tutopia.com>
Notes
Notes: svn path=/head/; revision=216109
Diffstat (limited to 'math/superlu_mt/files/patch-make.inc')
-rw-r--r--math/superlu_mt/files/patch-make.inc88
1 files changed, 52 insertions, 36 deletions
diff --git a/math/superlu_mt/files/patch-make.inc b/math/superlu_mt/files/patch-make.inc
index 31ec2aa36745..c1b389011630 100644
--- a/math/superlu_mt/files/patch-make.inc
+++ b/math/superlu_mt/files/patch-make.inc
@@ -1,46 +1,62 @@
---- make.inc.orig Thu Sep 2 15:47:13 1999
-+++ make.inc Tue May 27 19:32:12 2003
-@@ -14,14 +14,15 @@
+--- make.inc.orig 2008-01-18 05:53:51.000000000 +0900
++++ make.inc 2008-07-02 09:44:04.000000000 +0900
+@@ -16,13 +16,13 @@
#
# The machine (platform) identifier to append to the library names
#
--PLAT = _SOLARIS
+-PLAT = _sp
+PLAT = _PTHREAD
- # Common Libraries
--TMGLIB = tmglib$(PLAT).a
--SUPERLULIB = superlu_mt$(PLAT).a
--BLASLIB = ../blas$(PLAT).a
-+TMGLIB = libtmg.a
-+SUPERLULIB = libsuperlu_mt.a
-+BLASDEF = -DUSE_VENDOR_BLAS
-+BLASLIB = %%BLAS_LIBS%%
- MATHLIB = -lm
--MPLIB = -lthread
-+MPLIB = %%PTHREAD_LIBS%%
+ #
+ # 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,10 +30,10 @@
+ # which may be slower than ESSL
#
- # The archiver and the flag(s) to use when building archive (library)
-@@ -32,18 +33,18 @@
- RANLIB = ranlib
+ BLASDEF = -DUSE_VENDOR_BLAS
+-BLASLIB = -lessl
++BLASLIB = %%BLAS_LIBS%%
+ #BLASLIB = ../lib/libblas$(PLAT).a
+ MATHLIB = -lm
+-MPLIB = -lpthread
++MPLIB = %%PTHREAD_LIBS%%
- # for Solaris 2.x
--CC = cc
-+CC ?= cc
- #
- # Definitions used by CPP:
- PREDEFS = -D$(PLAT)
- #
--CFLAGS = $(PREDEFS) -xO3 -xcg92 $(DBG)
-+CFLAGS += $(PREDEFS) %%PTHREAD_CFLAGS%%
- NOOPTS =
- BLASOPTS =
- LOADER = cc
- LOADOPTS = -O
--FORTRAN = f77
--FFLAGS = -O
-+FORTRAN ?= f77
-+FFLAGS ?= -O
+ # The archiver and the flag(s) to use when building archive (library)
+ # If your system has no ranlib, set RANLIB = echo.
+@@ -46,12 +46,12 @@
+ PREDEFS = -D_PTHREAD
+ #
+-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) %%CFLAGS%% %%PTHREAD_CFLAGS%%
++FORTRAN = %%FC%%
++FFLAGS = %%FFLAGS%%
++LOADER = %%FC%%
++LOADOPTS = -O
+ #
+ # C preprocessor defs for compilation for the Fortran interface
+ # (-DNoChange, -DAdd_, -DAdd__, or -DUpCase)
+
+--- make.inc~ 2008-07-02 09:54:57.000000000 +0900
++++ make.inc 2008-07-02 09:57:28.000000000 +0900
+@@ -56,6 +56,6 @@
+ # C preprocessor defs for compilation for the Fortran interface
+ # (-DNoChange, -DAdd_, -DAdd__, or -DUpCase)
#
- # C preprocessor defs for compilation (-DNoChange, -DAdd_, or -DUpCase)
+-CDEFS = -DNoChange
++CDEFS = -DAdd_
+
+