openblas: use spack_cc/spack_f77 and add a note on compiler mixing
This commit is contained in:
parent
5e13bba068
commit
8db35ab9a2
1 changed files with 7 additions and 5 deletions
|
@ -48,11 +48,13 @@ class Openblas(Package):
|
||||||
patch('make.patch')
|
patch('make.patch')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
# Openblas is picky about compilers. Configure fails with
|
# Configure fails to pick up fortran from FC=/abs/path/to/f77, but
|
||||||
# FC=/abs/path/to/f77, whereas FC=f77 works fine.
|
# works fine with FC=/abs/path/to/gfortran.
|
||||||
# To circumvent this, provide basename only:
|
# When mixing compilers make sure that
|
||||||
make_defs = ['CC=%s' % os.path.basename(spack_cc),
|
# $SPACK_ROOT/lib/spack/env/<compiler> have symlinks with reasonable
|
||||||
'FC=%s' % os.path.basename(spack_f77),
|
# names and hack them inside lib/spack/spack/compilers/<compiler>.py
|
||||||
|
make_defs = ['CC=%s' % spack_cc,
|
||||||
|
'FC=%s' % spack_f77,
|
||||||
'MAKE_NO_J=1']
|
'MAKE_NO_J=1']
|
||||||
|
|
||||||
make_targets = ['libs', 'netlib']
|
make_targets = ['libs', 'netlib']
|
||||||
|
|
Loading…
Reference in a new issue