Skip to content

Commit

Permalink
Linking C static libs for mbedtls_printf
Browse files Browse the repository at this point in the history
  • Loading branch information
irajtaghlidi committed Sep 23, 2024
1 parent 3244473 commit 7e57229
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mbedtls-platform-support/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ fn main() {
.flag("-ffreestanding");
}
b.compile("librust-mbedtls-platform-support.a");
// Force correct link order for mbedtls_printf
println!("cargo:rustc-link-lib=static=mbedtls");
println!("cargo:rustc-link-lib=static=mbedx509");
println!("cargo:rustc-link-lib=static=mbedcrypto");
}

0 comments on commit 7e57229

Please sign in to comment.