mfem: have hypre link line also link lapack+blas (#7165)
Spack's hypre package depends on LAPACK and BLAS, so linking to hypre requires linking to the LAPACK and BLAS libraries used to build hypre.
This commit is contained in:
parent
87043679ae
commit
1810fac25f
1 changed files with 8 additions and 5 deletions
|
@ -180,10 +180,13 @@ def yes_no(varstr):
|
||||||
options += ['MPICXX=%s' % spec['mpi'].mpicxx]
|
options += ['MPICXX=%s' % spec['mpi'].mpicxx]
|
||||||
|
|
||||||
if '+hypre' in spec:
|
if '+hypre' in spec:
|
||||||
options += [
|
hypre = spec['hypre']
|
||||||
'HYPRE_DIR=%s' % spec['hypre'].prefix,
|
hypre_flag_list = (hypre.libs +
|
||||||
'HYPRE_OPT=-I%s' % spec['hypre'].prefix.include,
|
hypre['lapack'].libs +
|
||||||
'HYPRE_LIB=-L%s' % spec['hypre'].prefix.lib + ' -lHYPRE']
|
hypre['blas'].libs)
|
||||||
|
options += ['HYPRE_DIR=%s' % hypre.prefix,
|
||||||
|
'HYPRE_OPT=-I%s' % hypre.prefix.include,
|
||||||
|
'HYPRE_LIB=%s' % hypre_flag_list.ld_flags]
|
||||||
|
|
||||||
if '+lapack' in spec:
|
if '+lapack' in spec:
|
||||||
lapack_lib = (spec['lapack'].libs + spec['blas'].libs).ld_flags # NOQA: ignore=E501
|
lapack_lib = (spec['lapack'].libs + spec['blas'].libs).ld_flags # NOQA: ignore=E501
|
||||||
|
|
Loading…
Reference in a new issue