Skip to content

Commit

Permalink
Statically link mpir?
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Sep 18, 2024
1 parent e3f2d56 commit 2afad11
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rust_bindings/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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={}",
Expand Down

0 comments on commit 2afad11

Please sign in to comment.