From a199e1f378f92ab3667dd98f0f57ab2a6a7c4a83 Mon Sep 17 00:00:00 2001 From: Earle Lowe <30607889+emlowe@users.noreply.github.com> Date: Wed, 30 Oct 2024 10:59:19 -0700 Subject: [PATCH] Link chiapos before blake3 (#454) 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. --- rust-bindings/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-bindings/build.rs b/rust-bindings/build.rs index 0bddc1ead..2f746ffb7 100644 --- a/rust-bindings/build.rs +++ b/rust-bindings/build.rs @@ -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(