We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab63550 commit 1c16af8Copy full SHA for 1c16af8
src/unix/mod.rs
@@ -306,11 +306,10 @@ 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", feature = "stdbuild", target_vendor = "rumprun"))] {
310
// Since we don't use -nodefaultlibs on Rumprun, libc is always pulled
311
// in automatically by the linker. We avoid passing it explicitly, as it
312
// causes some versions of binutils to crash with an assertion failure.
313
- #[cfg_attr(feature = "stdbuild", cfg(target_vendor = "rumprun"))]
314
#[link(name = "m")]
315
316
} else if #[cfg(any(target_os = "macos",
0 commit comments