Skip to content

Commit

Permalink
Fix freebsd.
Browse files Browse the repository at this point in the history
  • Loading branch information
clarfonthey committed Oct 8, 2017
1 parent d5d989e commit 59904c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ cfg_if! {
} else if #[cfg(target_os = "emscripten")] {
#[link(name = "c")]
extern {}
} else if #[cfg(all(target_os = "netbsd", target_vendor = "rumprun"))] {
} else if #[cfg(all(stdbuild,
target_os = "netbsd", 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.
Expand Down

0 comments on commit 59904c6

Please sign in to comment.