Skip to content

Commit

Permalink
Fix building with non bazel commits of boringssl
Browse files Browse the repository at this point in the history
We need to add `/build/crypto` and `/build/ssl` to the library search
path to handle the case where we pass `BORING_BSSL_SOURCE_PATH` when
building without enabling any fips features. Otherwise, non bazel
commits will not work because `/build/` itself will not contain any
crypto libraries to link with
  • Loading branch information
rushilmehra committed Jan 24, 2024
1 parent 3cf8bc4 commit b73dde6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions boring-sys/build/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,16 @@ fn main() {
build_path
);
} else {
println!(
"cargo:rustc-link-search=native={}/build/crypto/{}",
bssl_dir.display(),
build_path
);
println!(
"cargo:rustc-link-search=native={}/build/ssl/{}",
bssl_dir.display(),
build_path
);
println!(
"cargo:rustc-link-search=native={}/build/{}",
bssl_dir.display(),
Expand Down

0 comments on commit b73dde6

Please sign in to comment.