Skip to content

Commit

Permalink
Link to zlib while cross-compiling LLVM on Haiku
Browse files Browse the repository at this point in the history
PR #72696 enabled the option LLVM_ENABLE_ZLIB for the LLVM builds. On Haiku, zlib is linked as a shared library. When cross-compiling LLVM, rustbuild should be instructed to explicitly linking to libz.
  • Loading branch information
nielx committed Sep 1, 2020
1 parent f6d910c commit 0f6bcb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_llvm/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ fn main() {
} else if target.contains("windows-gnu") {
println!("cargo:rustc-link-lib=shell32");
println!("cargo:rustc-link-lib=uuid");
} else if target.contains("netbsd") {
} else if target.contains("netbsd") || target.contains("haiku") {
println!("cargo:rustc-link-lib=z");
}
cmd.args(&components);
Expand Down

0 comments on commit 0f6bcb7

Please sign in to comment.