diff options
| author | Jakub Beránek <jakub.beranek@vsb.cz> | 2023-07-17 08:30:54 +0200 |
|---|---|---|
| committer | Jakub Beránek <jakub.beranek@vsb.cz> | 2023-07-17 08:30:54 +0200 |
| commit | e95caa7b7276a9b7d57fb5cea544176d70623db5 (patch) | |
| tree | 52a2e2359c7e22b420129eb0cd62f78569d3ca34 | |
| parent | 18f20439ddb7ecef55977b44d093be503c57d4df (diff) | |
| download | rust-e95caa7b7276a9b7d57fb5cea544176d70623db5.tar.gz rust-e95caa7b7276a9b7d57fb5cea544176d70623db5.zip | |
Link to `execinfo` on NetBSD
| -rw-r--r-- | compiler/rustc_llvm/build.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs index b0783d75d47..aa1121d6bb3 100644 --- a/compiler/rustc_llvm/build.rs +++ b/compiler/rustc_llvm/build.rs @@ -251,8 +251,11 @@ 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") || target.contains("haiku") || target.contains("darwin") { + } else if target.contains("haiku") || target.contains("darwin") { println!("cargo:rustc-link-lib=z"); + } else if target.contains("netbsd") { + println!("cargo:rustc-link-lib=z"); + println!("cargo:rustc-link-lib=execinfo"); } cmd.args(&components); |
