aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-08-04 16:09:48 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-08-04 16:09:48 +0000
commit61075aafa5d63acfef28a9760caccd97964a719a (patch)
tree54867596940e62ae648721bac7285102db5b6790 /src
parent6503fff70f353a875d448b176b6fc157752b8056 (diff)
don't hardwire directories & library names
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@683 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src')
-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)