HDF5 static (#34577)

* Add HDF5 static support for netcdf-c
* Update var/spack/repos/builtin/packages/hdf5/package.py
   Apply pkgconfig fix for all libraries, not just lz

Co-authored-by: Sergey Kosukhin <skosukhin@gmail.com>

* Update package.py
   Fix pkg config templates
* remove subprocess+2 lines
* Try netcdf-c changes only

Co-authored-by: Sergey Kosukhin <skosukhin@gmail.com>
This commit is contained in:
Alex Richert 2023-01-30 11:51:07 -08:00 committed by GitHub
parent 80d26168b5
commit 3201b4e2a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,8 +213,6 @@ def configure_args(self):
hdf5_hl = self.spec["hdf5:hl"] hdf5_hl = self.spec["hdf5:hl"]
cppflags.append(hdf5_hl.headers.cpp_flags) cppflags.append(hdf5_hl.headers.cpp_flags)
ldflags.append(hdf5_hl.libs.search_flags) ldflags.append(hdf5_hl.libs.search_flags)
if hdf5_hl.satisfies("~shared"):
libs.append(hdf5_hl.libs.link_flags)
if "+parallel-netcdf" in self.spec: if "+parallel-netcdf" in self.spec:
config_args.append("--enable-pnetcdf") config_args.append("--enable-pnetcdf")