Skip to content

Commit 8ad2520

Browse files
committed
musl: opt for dynamic linking for arm arch
When building with musl for an arm target link with a shared libc (like mips already does).
1 parent e19309c commit 8ad2520

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
@@ -139,7 +139,8 @@ cfg_if! {
139139
if #[cfg(not(stdbuild))] {
140140
// cargo build, don't pull in anything extra as the libstd dep
141141
// already pulls in all libs.
142-
} else if #[cfg(all(target_env = "musl", not(target_arch = "mips")))] {
142+
} else if #[cfg(all(target_env = "musl", not(any(target_arch = "mips",
143+
target_arch = "arm"))))] {
143144
#[link(name = "c", kind = "static")]
144145
extern {}
145146
} else if #[cfg(target_os = "emscripten")] {

0 commit comments

Comments
 (0)