diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-11-15 11:04:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-15 11:04:34 +0100 |
| commit | 756870a2ff441ac4618c9143e5494721291699b8 (patch) | |
| tree | 7a07d800c0c1b0fd3debaa7da26cd05db1edfc4a /src/libstd | |
| parent | 9c5b8aad1d38079569baf0f8fa70d39f885d073c (diff) | |
| parent | 2d368b5de8c503718296a37912558a81267b65c0 (diff) | |
Rollup merge of #55622 - jakllsch:netbsd-librt, r=alexcrichton
NetBSD: link libstd with librt in addition to libpthread Some aio(3) and mq(3) functions in the libc crate actually come from NetBSD librt, not libc or libpthread.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/build.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstd/build.rs b/src/libstd/build.rs index b3851d22841..9d6e8c4cafd 100644 --- a/src/libstd/build.rs +++ b/src/libstd/build.rs @@ -41,8 +41,11 @@ fn main() { } else if target.contains("freebsd") { println!("cargo:rustc-link-lib=execinfo"); println!("cargo:rustc-link-lib=pthread"); + } else if target.contains("netbsd") { + println!("cargo:rustc-link-lib=pthread"); + println!("cargo:rustc-link-lib=rt"); } else if target.contains("dragonfly") || target.contains("bitrig") || - target.contains("netbsd") || target.contains("openbsd") { + target.contains("openbsd") { println!("cargo:rustc-link-lib=pthread"); } else if target.contains("solaris") { println!("cargo:rustc-link-lib=socket"); |
