From 61075aafa5d63acfef28a9760caccd97964a719a Mon Sep 17 00:00:00 2001 From: jthorn Date: Sun, 4 Aug 2002 16:09:48 +0000 Subject: don't hardwire directories & library names git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@683 f88db872-0e4f-0410-b76b-b9085cfa78c5 --- src/make.configuration.defn | 13 +++++++++++-- 1 file 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) -- cgit v1.2.3