diff --git a/blst/go.patch b/blst/go.patch index 11755af4..f1645795 100644 --- a/blst/go.patch +++ b/blst/go.patch @@ -24,7 +24,7 @@ index aa7f141..7f0f01e 100644 +// #endif +// #include +// #include "c_kzg_4844.h" -+// #cgo LDFLAGS: -L${SRCDIR}/../../../../target/release -lrust_kzg_blst -lm ++// #cgo LDFLAGS: -L${SRCDIR}/../../../../target/release -l:rust_kzg_blst.a -lm import "C" import ( diff --git a/blst/rust.patch b/blst/rust.patch index 5db38b4f..f4ad2e8c 100644 --- a/blst/rust.patch +++ b/blst/rust.patch @@ -73,7 +73,7 @@ index d2dba36..ac4153f 100644 // Finally, tell cargo this provides ckzg - println!("cargo:rustc-link-lib=ckzg"); + println!("cargo:rustc-link-search={}", rust_kzg_target_dir.display()); -+ println!("cargo:rustc-link-lib=rust_kzg_blst"); ++ println!("cargo:rustc-link-arg=-l:rust_kzg_blst.a"); } fn make_bindings

( diff --git a/mcl/kzg/go.patch b/mcl/kzg/go.patch index 3f6c48f0..04bfdc48 100644 --- a/mcl/kzg/go.patch +++ b/mcl/kzg/go.patch @@ -24,7 +24,7 @@ index aa7f141..1357122 100644 +// #endif +// #include +// #include "c_kzg_4844.h" -+// #cgo LDFLAGS: -L${SRCDIR}/../../../../../target/release -L${SRCDIR}/../../lib -lrust_kzg_mcl -lstdc++ -lblst -lm ++// #cgo LDFLAGS: -L${SRCDIR}/../../../../../target/release -L${SRCDIR}/../../lib -l:rust_kzg_mcl.a -lstdc++ -lblst -lm import "C" import ( diff --git a/mcl/kzg/rust.patch b/mcl/kzg/rust.patch index 63029ac5..8a56b433 100644 --- a/mcl/kzg/rust.patch +++ b/mcl/kzg/rust.patch @@ -73,7 +73,7 @@ index d2dba36..ac4153f 100644 // Finally, tell cargo this provides ckzg - println!("cargo:rustc-link-lib=ckzg"); + println!("cargo:rustc-link-search={}", rust_kzg_target_dir.display()); -+ println!("cargo:rustc-link-lib=rust_kzg_mcl"); ++ println!("cargo:rustc-link-arg=-l:rust_kzg_mcl.a"); } fn make_bindings

(