27 lines
1007 B
Diff
27 lines
1007 B
Diff
From d72ad9c226b4ed225c23d88ec5dbe6ba321b37ad Mon Sep 17 00:00:00 2001
|
|
From: q66 <daniel@octaforge.org>
|
|
Date: Sat, 21 Dec 2019 17:04:13 +0100
|
|
Subject: [PATCH 11/15] Dynamically link libc on musl by default
|
|
|
|
---
|
|
src/librustc_target/spec/linux_musl_base.rs | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/src/librustc_target/spec/linux_musl_base.rs b/src/librustc_target/spec/linux_musl_base.rs
|
|
index 58ae91a9..1fae72d6 100644
|
|
--- a/compiler/rustc_target/src/spec/linux_musl_base.rs
|
|
+++ b/compiler/rustc_target/src/spec/linux_musl_base.rs
|
|
@@ -1,11 +1,9 @@
|
|
-use crate::spec::crt_objects::{self, CrtObjectsFallback};
|
|
use crate::spec::TargetOptions;
|
|
|
|
pub fn opts() -> TargetOptions {
|
|
let mut base = super::linux_base::opts();
|
|
|
|
- // These targets statically link libc by default
|
|
- base.crt_static_default = true;
|
|
+ base.crt_static_default = false;
|
|
// These targets allow the user to choose between static and dynamic linking.
|
|
base.crt_static_respected = true;
|
|
|