Skip to content

Commit

Permalink
Reorder linking
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Jul 8, 2024
1 parent 0d0b636 commit 1897bbc
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 @@ -8,7 +8,6 @@ fn main() {
println!("cargo:rerun-if-changed=wrapper.h");
println!("cargo:rerun-if-changed=../src/c_bindings/c_wrapper.h");
println!("cargo:rerun-if-changed=../src/c_bindings/c_wrapper.cpp");
println!("cargo:rustc-link-lib=gmp");

let manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());

Expand Down Expand Up @@ -39,6 +38,7 @@ fn main() {
.unwrap()
);
println!("cargo:rustc-link-lib=static=chiavdfc");
println!("cargo:rustc-link-lib=gmp");

let bindings = bindgen::Builder::default()
.header(manifest_dir.join("wrapper.h").to_str().unwrap())
Expand Down

0 comments on commit 1897bbc

Please sign in to comment.