From 2afad11a0772566fcd2633a9c72656d353bfbce0 Mon Sep 17 00:00:00 2001 From: Rigidity Date: Wed, 18 Sep 2024 10:36:13 -0400 Subject: [PATCH] Statically link mpir? --- rust_bindings/build.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rust_bindings/build.rs b/rust_bindings/build.rs index d07e612c..4c4643b4 100644 --- a/rust_bindings/build.rs +++ b/rust_bindings/build.rs @@ -44,6 +44,18 @@ fn main() { .to_str() .unwrap() ); + + println!( + "cargo:rustc-link-search=native={}", + src_dir + .parent() + .unwrap() + .join("mpir_gc_x64") + .to_str() + .unwrap() + ); + + println!("cargo:rustc-link-lib=static=mpir"); } else { println!( "cargo:rustc-link-search=native={}",