Fix linking SystemFunction036 from advapi32 in Rust 1.87

This commit is contained in:
Kornel 2025-05-20 23:58:04 +01:00 committed by Kornel
parent 23863ffd1b
commit 0327dd03c6
1 changed files with 5 additions and 0 deletions

View File

@ -701,6 +701,11 @@ fn main() {
println!("cargo:rustc-link-lib=static=crypto");
println!("cargo:rustc-link-lib=static=ssl");
if config.target_os == "windows" {
// Rust 1.87.0 compat - https://github.com/rust-lang/rust/pull/138233
println!("cargo:rustc-link-lib=advapi32");
}
let include_path = config.env.include_path.clone().unwrap_or_else(|| {
if let Some(bssl_path) = &config.env.path {
return bssl_path.join("include");