Skip to content

Commit

Permalink
feat(build): do not link gmpxx statically
Browse files Browse the repository at this point in the history
  • Loading branch information
uulm-janbaudisch committed May 2, 2024
1 parent 8f698bf commit 3930276
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "d4-oxide"
version = "0.2.2"
version = "0.3.0"
description = "A Rust wrapper around d4."
edition = "2021"
build = "build.rs"
Expand Down
3 changes: 1 addition & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,14 @@ fn main() {

// Find and link the C++ interface of GMP.
let gmpxx_library = pkg_config::Config::new()
.statik(true)
.probe("gmpxx")
.expect("Failed to find GMP C++ library.");

for path in gmpxx_library.link_paths {
println!("cargo:rustc-link-search={}", path.display());
}

println!("cargo:rustc-link-lib=static=gmpxx");
println!("cargo:rustc-link-lib=dylib=gmpxx");

// Link Mt-KaHyPar.
println!("cargo:rustc-link-lib=dylib=mtkahypar");
Expand Down

0 comments on commit 3930276

Please sign in to comment.