Skip to content

Commit 59904c6

Browse files
author
Clar Charr
committed
Fix freebsd.
1 parent d5d989e commit 59904c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/unix/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ cfg_if! {
239239
} else if #[cfg(target_os = "emscripten")] {
240240
#[link(name = "c")]
241241
extern {}
242-
} else if #[cfg(all(target_os = "netbsd", target_vendor = "rumprun"))] {
242+
} else if #[cfg(all(stdbuild,
243+
target_os = "netbsd", target_vendor = "rumprun"))] {
243244
// Since we don't use -nodefaultlibs on Rumprun, libc is always pulled
244245
// in automatically by the linker. We avoid passing it explicitly, as it
245246
// causes some versions of binutils to crash with an assertion failure.

0 commit comments

Comments
 (0)