From 8ad252009a833ebf4ba006375a83a06f415bae85 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
Date: Mon, 7 Mar 2016 00:04:20 +0100
Subject: [PATCH] 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).
---
 src/unix/mod.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/unix/mod.rs b/src/unix/mod.rs
index 0f708344..6176402f 100644
--- a/src/unix/mod.rs
+++ b/src/unix/mod.rs
@@ -139,7 +139,8 @@ cfg_if! {
     if #[cfg(not(stdbuild))] {
         // cargo build, don't pull in anything extra as the libstd  dep
         // already pulls in all libs.
-    } else if #[cfg(all(target_env = "musl", not(target_arch = "mips")))] {
+    } else if #[cfg(all(target_env = "musl", not(any(target_arch = "mips",
+                                                     target_arch = "arm"))))] {
         #[link(name = "c", kind = "static")]
         extern {}
     } else if #[cfg(target_os = "emscripten")] {
-- 
GitLab