Skip to content

Commit 0f6bcb7

Browse files
committed
Link to zlib while cross-compiling LLVM on Haiku
PR rust-lang#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.
1 parent f6d910c commit 0f6bcb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_llvm/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ fn main() {
198198
} else if target.contains("windows-gnu") {
199199
println!("cargo:rustc-link-lib=shell32");
200200
println!("cargo:rustc-link-lib=uuid");
201-
} else if target.contains("netbsd") {
201+
} else if target.contains("netbsd") || target.contains("haiku") {
202202
println!("cargo:rustc-link-lib=z");
203203
}
204204
cmd.args(&components);

0 commit comments

Comments
 (0)