Abinit fix hdf5 (#44763)
* abinit: fix locating HDF5 Remove the check in the configure script to locate HDF5. Replaced by using Spack to locate the package.
This commit is contained in:
parent
37e2d46d7d
commit
6b052c3af9
@ -316,6 +316,16 @@ def check(self):
|
|||||||
if "~mpi" in self.spec:
|
if "~mpi" in self.spec:
|
||||||
make("tests_in")
|
make("tests_in")
|
||||||
|
|
||||||
|
# Abinit assumes the *old* behavior of HDF5 where the library flags to link
|
||||||
|
# to the library were stored in the lib/libhdf5.settings file.
|
||||||
|
# Spack already knows how to link to HDF5, disable this check in configure
|
||||||
|
def patch(self):
|
||||||
|
filter_file(
|
||||||
|
r"sd_hdf5_libs_extra=.*",
|
||||||
|
"sd_hdf5_libs_extra=%s" % self.spec["hdf5"].libs.ld_flags,
|
||||||
|
"configure",
|
||||||
|
)
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
make("install")
|
make("install")
|
||||||
if "+install-tests" in spec:
|
if "+install-tests" in spec:
|
||||||
|
Loading…
Reference in New Issue
Block a user