Skip to content
Snippets Groups Projects
Commit df5e1510 authored by Denis Davydov's avatar Denis Davydov Committed by Todd Gamblin
Browse files

hypre: fix a bug with blas/lapack names (#1841)

parent c0ebbc97
No related branches found
No related tags found
No related merge requests found
...@@ -54,20 +54,15 @@ def install(self, spec, prefix): ...@@ -54,20 +54,15 @@ def install(self, spec, prefix):
os.environ['CXX'] = spec['mpi'].mpicxx os.environ['CXX'] = spec['mpi'].mpicxx
os.environ['F77'] = spec['mpi'].mpif77 os.environ['F77'] = spec['mpi'].mpif77
# Since +shared does not build on macOS and also Atlas does not have
# a single static lib to build against, link against shared libs with
# a hope that --whole-archive linker option (or alike) was used
# to command the linker to include whole static libs' content into the
# shared lib
# Note: --with-(lapack|blas)_libs= needs space separated list of names # Note: --with-(lapack|blas)_libs= needs space separated list of names
lapack = spec['lapack'].lapack_libs lapack = spec['lapack'].lapack_libs
blas = spec['blas'].blas_libs blas = spec['blas'].blas_libs
configure_args = [ configure_args = [
'--prefix=%s' % prefix, '--prefix=%s' % prefix,
'--with-lapack-libs=%s' % lapack.names, '--with-lapack-libs=%s' % ' '.join(lapack.names),
'--with-lapack-lib-dirs=%s' % spec['lapack'].prefix.lib, '--with-lapack-lib-dirs=%s' % spec['lapack'].prefix.lib,
'--with-blas-libs=%s' % blas.names, '--with-blas-libs=%s' % ' '.join(blas.names),
'--with-blas-lib-dirs=%s' % spec['blas'].prefix.lib '--with-blas-lib-dirs=%s' % spec['blas'].prefix.lib
] ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment