From 8ccb657d85afd5b4ff5f0094aebbc015732b5b13 Mon Sep 17 00:00:00 2001 From: Rushil Mehra Date: Fri, 2 Feb 2024 10:03:29 -0800 Subject: [PATCH] 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. --- boring-sys/build/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boring-sys/build/main.rs b/boring-sys/build/main.rs index 1c9a3e92..7d5444d1 100644 --- a/boring-sys/build/main.rs +++ b/boring-sys/build/main.rs @@ -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(),