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
@ -51,7 +51,7 @@ class Mfem(Package):
|
|||||||
# If this quick verification procedure fails, additional discussion
|
# If this quick verification procedure fails, additional discussion
|
||||||
# will be required to verify the new version.
|
# will be required to verify the new version.
|
||||||
|
|
||||||
version('3.3.2',
|
version('3.3.2',
|
||||||
'01a762a5d0a2bc59ce4e2f59009045a4',
|
'01a762a5d0a2bc59ce4e2f59009045a4',
|
||||||
url='https://goo.gl/Kd7Jk8', extension='.tar.gz',
|
url='https://goo.gl/Kd7Jk8', extension='.tar.gz',
|
||||||
preferred=True)
|
preferred=True)
|
||||||
@ -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 New Issue
Block a user