diff --git a/chiavdf-1.1.5/build.rs b/chiavdf-1.1.5/build.rs index da54af029..dfb764852 100644 --- a/chiavdf-1.1.5/build.rs +++ b/chiavdf-1.1.5/build.rs @@ -46,6 +46,8 @@ fn main() { .to_str() .unwrap() ); + + println!("cargo:rustc-link-lib=mpir"); } else { // macOS (or other platforms): Keep it as is println!( @@ -58,10 +60,11 @@ fn main() { .to_str() .unwrap() ); + + println!("cargo:rustc-link-lib=gmp"); } 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())