ports/math/scalapack/files/patch-SLmake.inc.example
Thierry Thomas a9b5c9a5ba Upgrade to 2.1.0. This now includes BLACS and PBLAS.
Also use openblas by default.
2020-06-14 09:13:28 +00:00

35 lines
1,015 B
Text

--- SLmake.inc.example.orig 2019-11-26 20:37:04 UTC
+++ SLmake.inc.example
@@ -20,17 +20,17 @@
# -DUpCase (fortran subprogram names are upper case without any suffix)
# -DAdd_ (fortran subprogram names are lower case with "_" appended)
-CDEFS = -DAdd_
+CDEFS = -DAdd_ -DNO_IEEE $(USEMPI)
#
# The fortran and C compilers, loaders, and their flags
#
-FC = mpif90
-CC = mpicc
-NOOPT = -O0
-FCFLAGS = -O3
-CCFLAGS = -O3
+FC = @MPIF77@
+CC = @MPICC@
+NOOPT = @NOOPT@
+FCFLAGS = @FFLAGS@
+CCFLAGS = @CFLAGS@
FCLOADER = $(FC)
CCLOADER = $(CC)
FCLOADFLAGS = $(FCFLAGS)
@@ -55,6 +55,6 @@ SCALAPACKLIB = libscalapack.a
# BLAS, LAPACK (and possibly other) libraries needed for linking test programs
#
-BLASLIB = -lblas
-LAPACKLIB = -llapack
+BLASLIB = -L@LOCALBASE@/lib @BLAS@
+LAPACKLIB = -L@LOCALBASE@/lib @LAPACK@
LIBS = $(LAPACKLIB) $(BLASLIB)