Skip to content

Commit

Permalink
set static linking
Browse files Browse the repository at this point in the history
  • Loading branch information
irajtaghlidi committed Sep 23, 2024
1 parent 0001b6c commit 3244473
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mbedtls-sys/build/cmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ impl super::BuildConfig {
dst.to_str().expect("link-search UTF-8 error")
);

println!("cargo:rustc-link-lib=mbedtls");
println!("cargo:rustc-link-lib=mbedx509");
println!("cargo:rustc-link-lib=mbedcrypto");
println!("cargo:rustc-link-lib=static=mbedtls");
println!("cargo:rustc-link-lib=static=mbedx509");
println!("cargo:rustc-link-lib=static=mbedcrypto");

println!("cargo:include={}/include", dst.to_str().expect("include/ UTF-8 error"));
println!("cargo:config_h={}", self.config_h.to_str().expect("config.h UTF-8 error"));
Expand Down

0 comments on commit 3244473

Please sign in to comment.