Skip to content

Commit 1c16af8

Browse files
committed
Fix netbsd build with "stdbuild"
1 parent ab63550 commit 1c16af8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/unix/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,10 @@ cfg_if! {
306306
} else if #[cfg(target_os = "emscripten")] {
307307
#[link(name = "c")]
308308
extern {}
309-
} else if #[cfg(all(target_os = "netbsd"))] {
309+
} else if #[cfg(all(target_os = "netbsd", feature = "stdbuild", target_vendor = "rumprun"))] {
310310
// Since we don't use -nodefaultlibs on Rumprun, libc is always pulled
311311
// in automatically by the linker. We avoid passing it explicitly, as it
312312
// causes some versions of binutils to crash with an assertion failure.
313-
#[cfg_attr(feature = "stdbuild", cfg(target_vendor = "rumprun"))]
314313
#[link(name = "m")]
315314
extern {}
316315
} else if #[cfg(any(target_os = "macos",

0 commit comments

Comments
 (0)