From 62f108fec44b12e66d2bd7f9aa980f49f9936f8f Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Sat, 21 Dec 2019 17:04:13 +0100
Subject: [PATCH 09/10] Dynamically link libc on musl by default

Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
---
 compiler/rustc_target/src/spec/linux_musl_base.rs | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/compiler/rustc_target/src/spec/linux_musl_base.rs b/compiler/rustc_target/src/spec/linux_musl_base.rs
index bc432445bea7..e2b00dd28062 100644
--- a/compiler/rustc_target/src/spec/linux_musl_base.rs
+++ b/compiler/rustc_target/src/spec/linux_musl_base.rs
@@ -1,4 +1,3 @@
-use crate::spec::crt_objects::{self, CrtObjectsFallback};
 use crate::spec::TargetOptions;
 
 pub fn opts() -> TargetOptions {
@@ -6,8 +5,7 @@ pub fn opts() -> TargetOptions {
 
     base.env = "musl".to_string();
 
-    // These targets statically link libc by default
-    base.crt_static_default = true;
+    base.crt_static_default = false;
 
     base
 }
-- 
2.30.0

