We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ab63550 + 6fc015f commit 5964896Copy full SHA for 5964896
src/unix/mod.rs
@@ -306,11 +306,11 @@ cfg_if! {
306
} else if #[cfg(target_os = "emscripten")] {
307
#[link(name = "c")]
308
extern {}
309
- } else if #[cfg(all(target_os = "netbsd"))] {
+ } else if #[cfg(all(target_os = "netbsd",
310
+ feature = "stdbuild", target_vendor = "rumprun"))] {
311
// Since we don't use -nodefaultlibs on Rumprun, libc is always pulled
312
// in automatically by the linker. We avoid passing it explicitly, as it
313
// causes some versions of binutils to crash with an assertion failure.
- #[cfg_attr(feature = "stdbuild", cfg(target_vendor = "rumprun"))]
314
#[link(name = "m")]
315
316
} else if #[cfg(any(target_os = "macos",
0 commit comments