Skip to content

Commit

Permalink
Force static linking of hdf5
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusuMET committed Jul 29, 2024
1 parent cde154e commit c52987c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion netcdf-src/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dap = ["dep:link-cplusplus"]
mpi = []

[dependencies]
hdf5-sys = { workspace = true, features = ["hl", "deprecated", "zlib"] }
hdf5-sys = { workspace = true, features = ["hl", "deprecated", "zlib", "static"] }
libz-sys = { version = "1.0.25" }
link-cplusplus = { version = "1.0.9", optional = true }

Expand Down
1 change: 1 addition & 0 deletions netcdf-src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ fn main() {
.define("PLUGIN_INSTALL_DIR", "OFF")
//
.define("HDF5_ROOT", &hdf5_root)
.define("HDF5_USE_STATIC_LIBRARIES", "ON")
//
.define("NETCDF_ENABLE_LIBXML2", "OFF") // Use bundled xml2
//
Expand Down

0 comments on commit c52987c

Please sign in to comment.