Skip to content

Commit

Permalink
Fix netbsd build with "stdbuild"
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Jul 12, 2018
1 parent ab63550 commit 6fc015f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6fc015f

Please sign in to comment.