Skip to content

Commit

Permalink
Fix static build to link agains zstd (WasmEdge#91)
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
  • Loading branch information
jprendes authored Nov 15, 2023
1 parent c99e30d commit b5daace
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ num-derive = "0.3"
num-traits = "0.2"
thiserror = "1.0.30"
wasmedge-macro.workspace = true
wasmedge-sys = { path = "crates/wasmedge-sys", version = "0.17", default-features = false }
wasmedge-sys = { path = "crates/wasmedge-sys", version = "0.17.4", default-features = false }
wasmedge-types.workspace = true

[workspace.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion crates/wasmedge-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ fn main() {
// Tell cargo to tell rustc to link our `wasmedge` library. Cargo will
// automatically know it must look for a `libwasmedge.a` file.
println!("cargo:rustc-link-lib=static=wasmedge");
for dep in ["rt", "dl", "pthread", "m", "stdc++"] {
for dep in ["rt", "dl", "pthread", "m", "zstd", "stdc++"] {
link_lib(dep);
}
} else {
Expand Down

0 comments on commit b5daace

Please sign in to comment.