Skip to content

Commit

Permalink
Auto merge of #1038 - Amanieu:fix_netbsd, r=alexcrichton
Browse files Browse the repository at this point in the history
Fix netbsd build with "stdbuild"

A bug was introduced in #930 which caused netbsd to not link to libm.

r? @alexcrichton
  • Loading branch information
bors committed Jul 12, 2018
2 parents ab63550 + 6fc015f commit 5964896
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 5964896

Please sign in to comment.