aboutsummaryrefslogtreecommitdiff
path: root/src/make.configuration.defn
diff options
context:
space:
mode:
Diffstat (limited to 'src/make.configuration.defn')
-rw-r--r--src/make.configuration.defn13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/make.configuration.defn b/src/make.configuration.defn
index 24804b8..4c9bacf 100644
--- a/src/make.configuration.defn
+++ b/src/make.configuration.defn
@@ -1,5 +1,14 @@
# additional configuration information for Cactus to build this thorn
# $Header$
-LIBDIRS += /usr/local/lib
-LIBS := lapack blas $(LIBS)
+# environment variable LAPACK_DIR, if set (should be a black-separated
+# list of directories), says where to look for LAPACK/BLAS libraries
+ifneq ($(strip $(LAPACK_DIR)), )
+ LIBDIRS += $(LAPACK_DIR)
+endif
+
+# n.b. lapack and blas need to go at the *front* of other libs
+# since they may use libm etc
+# n.b. g2c is needed here if and only if g77 is use for any code
+# (eg on linux lapack/blas rpms are usually built with g77)
+LIBS := lapack blas g2c $(LIBS)