Skip to content

Commit e95caa7

Browse files
committed
Link to execinfo on NetBSD
1 parent 18f2043 commit e95caa7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/rustc_llvm/build.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,11 @@ fn main() {
251251
} else if target.contains("windows-gnu") {
252252
println!("cargo:rustc-link-lib=shell32");
253253
println!("cargo:rustc-link-lib=uuid");
254-
} else if target.contains("netbsd") || target.contains("haiku") || target.contains("darwin") {
254+
} else if target.contains("haiku") || target.contains("darwin") {
255255
println!("cargo:rustc-link-lib=z");
256+
} else if target.contains("netbsd") {
257+
println!("cargo:rustc-link-lib=z");
258+
println!("cargo:rustc-link-lib=execinfo");
256259
}
257260
cmd.args(&components);
258261

0 commit comments

Comments
 (0)