Skip to content

Commit

Permalink
Update patches
Browse files Browse the repository at this point in the history
  • Loading branch information
belijzajac committed Jun 17, 2023
1 parent a430275 commit fc3e77e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion blst/go.patch
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ index aa7f141..7f0f01e 100644
+// #endif
+// #include <stdlib.h>
+// #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 (
Expand Down
2 changes: 1 addition & 1 deletion blst/rust.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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<P>(
Expand Down
2 changes: 1 addition & 1 deletion mcl/kzg/go.patch
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ index aa7f141..1357122 100644
+// #endif
+// #include <stdlib.h>
+// #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 (
Expand Down
2 changes: 1 addition & 1 deletion mcl/kzg/rust.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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<P>(
Expand Down

0 comments on commit fc3e77e

Please sign in to comment.