Skip to content

Commit

Permalink
Link chiapos before blake3 (#454)
Browse files Browse the repository at this point in the history
make sure to put `-lchiapos_static` on the link line before `-lblake3` 

Jobs starting failing in newer ubuntu runner image - previous jobs
succeeded using `Image: ubuntu-22.04 Version: 20240901.1.0` but are
failing in `Image: ubuntu-22.04 Version: 20241015.1.0`

likely due to some update in clang or ld which is being somewhat more
strict and or smarter on resolving static library dependencies in that
the library the resolves the symbols should go after the library that
uses it.
  • Loading branch information
emlowe authored Oct 30, 2024
1 parent 779886e commit a199e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust-bindings/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ fn main() {
.unwrap()
);

println!("cargo:rustc-link-lib=static=blake3");
println!("cargo:rustc-link-lib=static=chiapos_static");
println!("cargo:rustc-link-lib=static=blake3");

let bindings = bindgen::Builder::default()
.header(
Expand Down

0 comments on commit a199e1f

Please sign in to comment.