tweaks for ergonomic linking

This commit is contained in:
Manuel Olguín Muñoz 2023-09-12 15:22:55 -04:00 committed by Ivan Nikulin
parent 2fa3d96966
commit bdbef2003f
1 changed files with 8 additions and 0 deletions

View File

@ -627,6 +627,10 @@ fn main() {
"cargo:rustc-link-search=native={}/build/ssl/{}",
bssl_dir, build_path
);
println!(
"cargo:rustc-link-search=native={}/lib/{}",
bssl_dir, build_path
);
} else {
println!(
"cargo:rustc-link-search=native={}/build/{}",
@ -642,6 +646,10 @@ fn main() {
println!("cargo:rustc-link-lib=static=ssl");
let include_path = env::var("BORING_BSSL_INCLUDE_PATH").unwrap_or_else(|_| {
if let Ok(bssl_path) = env::var("BORING_BSSL_PATH") {
return format!("{}/include", bssl_path);
}
let src_path = get_boringssl_source_path();
if Path::new(&src_path).join("include").exists() {