summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralalazo <massimiliano.culpo@googlemail.com>2016-09-06 11:21:26 +0200
committeralalazo <massimiliano.culpo@googlemail.com>2016-09-06 11:21:26 +0200
commitd39b666913eaed253dc008c91616fefebb599600 (patch)
tree9cb9d916ed846dd1d418523332d15b378c574a4f
parent16c5403ab3ca35dfa6d715ce2c5434c65de81c17 (diff)
downloadspack-d39b666913eaed253dc008c91616fefebb599600.tar.gz
spack-d39b666913eaed253dc008c91616fefebb599600.tar.bz2
spack-d39b666913eaed253dc008c91616fefebb599600.tar.xz
spack-d39b666913eaed253dc008c91616fefebb599600.zip
plumed : avoid linking with libgslcblas
-rw-r--r--var/spack/repos/builtin/packages/plumed/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/plumed/package.py b/var/spack/repos/builtin/packages/plumed/package.py
index 79632abf38..60dfdf7405 100644
--- a/var/spack/repos/builtin/packages/plumed/package.py
+++ b/var/spack/repos/builtin/packages/plumed/package.py
@@ -66,6 +66,8 @@ class Plumed(Package):
depends_on('mpi', when='+mpi')
depends_on('gsl', when='+gsl')
+ depends_on('autoconf', type='build')
+
# Dictionary mapping PLUMED versions to the patches it provides
# interactively
plumed_patches = {
@@ -98,6 +100,12 @@ class Plumed(Package):
module.plumed = Executable(join_path(self.spec.prefix.bin, 'plumed'))
def install(self, spec, prefix):
+ # This part is needed to avoid linking with gsl cblas
+ # interface which will mask the cblas interface
+ # provided by optimized libraries due to linking order
+ filter_file('-lgslcblas', '', 'configure.ac')
+ autoreconf('-ivf')
+
# From plumed docs :
# Also consider that this is different with respect to what some other
# configure script does in that variables such as MPICXX are