summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2018-07-12 08:55:40 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2018-07-12 09:24:55 +0100
commit6fc015f03ec5144bba9d76017ab46966acbd5677 (patch)
tree4f1b25ebef7ff2da1c40d852adcf33d5dc66547c
parentab6355021e98b958ca2c28801a791eb55183919b (diff)
downloadrust-libc-6fc015f03ec5144bba9d76017ab46966acbd5677.tar.gz
Fix netbsd build with "stdbuild"
-rw-r--r--src/unix/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs
index 7c5f4e6b4b..5e1b8ee467 100644
--- a/src/unix/mod.rs
+++ b/src/unix/mod.rs
@@ -306,11 +306,11 @@ cfg_if! {
} else if #[cfg(target_os = "emscripten")] {
#[link(name = "c")]
extern {}
- } else if #[cfg(all(target_os = "netbsd"))] {
+ } else if #[cfg(all(target_os = "netbsd",
+ feature = "stdbuild", target_vendor = "rumprun"))] {
// Since we don't use -nodefaultlibs on Rumprun, libc is always pulled
// in automatically by the linker. We avoid passing it explicitly, as it
// causes some versions of binutils to crash with an assertion failure.
- #[cfg_attr(feature = "stdbuild", cfg(target_vendor = "rumprun"))]
#[link(name = "m")]
extern {}
} else if #[cfg(any(target_os = "macos",