Fix building with BORING_BSSL_PATH / BORING_BSSL_FIPS_PATH

When passing BORING_BSSL_FIPS_PATH, you need to add /lib/ to the search
path, and when passing BORING_BSSL_PATH you need to add /crypto/ and
/ssl/ to the search path.
This commit is contained in:
Rushil Mehra 2024-02-02 10:03:29 -08:00 committed by Rushil Mehra
parent 5aed467dcb
commit d3a42b0aeb
1 changed files with 1 additions and 1 deletions

View File

@ -637,7 +637,7 @@ fn main() {
let bssl_dir = built_boring_source_path(&config);
let build_path = get_boringssl_platform_output_path(&config);
if config.is_bazel {
if config.is_bazel || (config.features.fips && config.env.path.is_some()) {
println!(
"cargo:rustc-link-search=native={}/lib/{}",
bssl_dir.display(),