From edb6e94225e10555d6d1102c0f5c7e5d9bdc429f Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 29 Jul 2024 13:27:20 +0800 Subject: [PATCH] [Fix] Link fmt library Signed-off-by: vincent --- crates/wasmedge-sys/build.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/wasmedge-sys/build.rs b/crates/wasmedge-sys/build.rs index 96252e793..15b7bf2fd 100644 --- a/crates/wasmedge-sys/build.rs +++ b/crates/wasmedge-sys/build.rs @@ -95,9 +95,10 @@ fn main() { // Tell cargo to look for static libraries in the specified directory println!("cargo:rustc-link-search=native={lib_dir}"); - // Tell cargo to tell rustc to link our `wasmedge` library. Cargo will - // automatically know it must look for a `libwasmedge.a` file. + // Tell cargo to tell rustc to link our `wasmedge` and `fmt` library. Cargo will + // automatically know it must look for a `libwasmedge.a` and `libfmt.a` file. println!("cargo:rustc-link-lib=static=wasmedge"); + println!("cargo:rustc-link-lib=static=fmt"); for dep in ["rt", "dl", "pthread", "m", "zstd", "stdc++"] { link_lib(dep); }