From 61fdf8eef5635265b02a6c5fe065f298740837e8 Mon Sep 17 00:00:00 2001 From: Marco A L Barbosa Date: Tue, 23 Jan 2018 13:34:25 -0200 Subject: [PATCH] Set crt_static_default = false for musl/mips[el] targets --- src/librustc_back/target/mips_unknown_linux_musl.rs | 1 + src/librustc_back/target/mipsel_unknown_linux_musl.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/librustc_back/target/mips_unknown_linux_musl.rs b/src/librustc_back/target/mips_unknown_linux_musl.rs index e1a3de34d01..80168d4af4b 100644 --- a/src/librustc_back/target/mips_unknown_linux_musl.rs +++ b/src/librustc_back/target/mips_unknown_linux_musl.rs @@ -18,6 +18,7 @@ pub fn target() -> TargetResult { base.max_atomic_width = Some(32); // see #36994 base.exe_allocation_crate = None; + base.crt_static_default = false; Ok(Target { llvm_target: "mips-unknown-linux-musl".to_string(), target_endian: "big".to_string(), diff --git a/src/librustc_back/target/mipsel_unknown_linux_musl.rs b/src/librustc_back/target/mipsel_unknown_linux_musl.rs index 08c16af70d3..b09d96eb9cb 100644 --- a/src/librustc_back/target/mipsel_unknown_linux_musl.rs +++ b/src/librustc_back/target/mipsel_unknown_linux_musl.rs @@ -18,6 +18,7 @@ pub fn target() -> TargetResult { base.max_atomic_width = Some(32); // see #36994 base.exe_allocation_crate = None; + base.crt_static_default = false; Ok(Target { llvm_target: "mipsel-unknown-linux-musl".to_string(), target_endian: "little".to_string(),