diff options
author | Denis Davydov <davydden@gmail.com> | 2016-04-06 10:55:59 +0200 |
---|---|---|
committer | Denis Davydov <davydden@gmail.com> | 2016-04-06 10:55:59 +0200 |
commit | 9b3c7b8afa40bd30e8bd54be12f5377ccd448c47 (patch) | |
tree | 1e38cf5d89c2b3369ecfc45af252f68e9eb5a58b /var | |
parent | f5a77d39580d215f8d4948b2cbe6c8d47d4fd514 (diff) | |
download | spack-9b3c7b8afa40bd30e8bd54be12f5377ccd448c47.tar.gz spack-9b3c7b8afa40bd30e8bd54be12f5377ccd448c47.tar.bz2 spack-9b3c7b8afa40bd30e8bd54be12f5377ccd448c47.tar.xz spack-9b3c7b8afa40bd30e8bd54be12f5377ccd448c47.zip |
openblas: provide basename of compilers to avoid issues with detection of Fortran
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/openblas/package.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/openblas/package.py b/var/spack/repos/builtin/packages/openblas/package.py index 4ec829a85b..9f13d0690b 100644 --- a/var/spack/repos/builtin/packages/openblas/package.py +++ b/var/spack/repos/builtin/packages/openblas/package.py @@ -19,8 +19,11 @@ class Openblas(Package): def install(self, spec, prefix): - make_defs = ['CC=%s' % spack_cc, - 'FC=%s' % spack_fc] + # Openblas is picky about compilers. Configure fails with + # FC=/abs/path/to/f77, whereas FC=f77 works fine. + # To circumvent this, provide basename only: + make_defs = ['CC=%s' % os.path.basename(spack_cc), + 'FC=%s' % os.path.basename(spack_f77)] make_targets = ['libs', 'netlib'] @@ -67,4 +70,3 @@ class Openblas(Package): if '+shared' in self.spec: self.spec.blas_shared_lib = join_path(libdir, 'libopenblas.%s' % dso_suffix) self.spec.lapack_shared_lib = self.spec.blas_shared_lib - |