openblas: provide basename of compilers to avoid issues with detection of Fortran
This commit is contained in:
parent
f5a77d3958
commit
9b3c7b8afa
1 changed files with 5 additions and 3 deletions
|
@ -19,8 +19,11 @@ class Openblas(Package):
|
||||||
|
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
make_defs = ['CC=%s' % spack_cc,
|
# Openblas is picky about compilers. Configure fails with
|
||||||
'FC=%s' % spack_fc]
|
# 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']
|
make_targets = ['libs', 'netlib']
|
||||||
|
|
||||||
|
@ -67,4 +70,3 @@ def setup_dependent_package(self, module, dspec):
|
||||||
if '+shared' in self.spec:
|
if '+shared' in self.spec:
|
||||||
self.spec.blas_shared_lib = join_path(libdir, 'libopenblas.%s' % dso_suffix)
|
self.spec.blas_shared_lib = join_path(libdir, 'libopenblas.%s' % dso_suffix)
|
||||||
self.spec.lapack_shared_lib = self.spec.blas_shared_lib
|
self.spec.lapack_shared_lib = self.spec.blas_shared_lib
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue