parent
ff4a4fcd9e
commit
cde5fdde20
@ -98,10 +98,11 @@ def check_compilers(self):
|
||||
# As of 06/2016 there is no mechanism to specify that packages which
|
||||
# depends on Blas/Lapack need C or/and Fortran symbols. For now
|
||||
# require both.
|
||||
if self.compiler.f77 is None:
|
||||
if self.compiler.fc is None:
|
||||
raise InstallError(
|
||||
'OpenBLAS requires both C and Fortran compilers!'
|
||||
)
|
||||
|
||||
# Add support for OpenMP
|
||||
if (self.spec.satisfies('threads=openmp') and
|
||||
self.spec.satisfies('%clang')):
|
||||
@ -116,7 +117,7 @@ def check_compilers(self):
|
||||
|
||||
@property
|
||||
def make_defs(self):
|
||||
# Configure fails to pick up fortran from FC=/abs/path/to/f77, but
|
||||
# Configure fails to pick up fortran from FC=/abs/path/to/fc, but
|
||||
# works fine with FC=/abs/path/to/gfortran.
|
||||
# When mixing compilers make sure that
|
||||
# $SPACK_ROOT/lib/spack/env/<compiler> have symlinks with reasonable
|
||||
@ -124,7 +125,7 @@ def make_defs(self):
|
||||
|
||||
make_defs = [
|
||||
'CC={0}'.format(spack_cc),
|
||||
'FC={0}'.format(spack_f77),
|
||||
'FC={0}'.format(spack_fc),
|
||||
'MAKE_NO_J=1'
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user