Skip to content

Commit

Permalink
feat(build): link gmp dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
uulm-janbaudisch committed Dec 8, 2024
1 parent 6320117 commit 0852c73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions d4-oxide/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ fn main() {
println!("cargo::rustc-link-lib=static=cadical");
println!("cargo::rustc-link-lib=static=cryptominisat5");
println!("cargo::rustc-link-lib=static=glucose");
println!("cargo::rustc-link-lib=static=gmp");
println!("cargo::rustc-link-lib=static=gmpxx");
println!("cargo::rustc-link-lib=static=gpmc");
println!("cargo::rustc-link-lib=static=sbva");

// Link GMP dynamically for now as it is also needed for Mt-KaHyPar.
println!("cargo::rustc-link-lib=dylib=gmpxx");
println!("cargo::rustc-link-lib=dylib=gmp");
}
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@

buildInputs = [
pkgs.boost.dev
pkgs.gmp.dev
pkgs.pkgsStatic.mpfr.dev
pkgs.pkgsStatic.gmp.dev
d4Pkgs.mt-kahypar.dev
];
};
Expand Down

0 comments on commit 0852c73

Please sign in to comment.