27 lines
1 KiB
Diff
27 lines
1 KiB
Diff
|
From 5f6e96316b489a4bc71f2b54dd0bf0b94a708374 Mon Sep 17 00:00:00 2001
|
||
|
From: q66 <daniel@octaforge.org>
|
||
|
Date: Sat, 21 Dec 2019 17:04:13 +0100
|
||
|
Subject: [PATCH 13/18] 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/src/librustc_target/spec/linux_musl_base.rs
|
||
|
+++ b/src/librustc_target/spec/linux_musl_base.rs
|
||
|
@@ -9,8 +9,7 @@ pub fn opts() -> TargetOptions {
|
||
|
// argument is *not* necessary for normal builds, but it can't hurt!
|
||
|
base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-Wl,--eh-frame-hdr".to_string());
|
||
|
|
||
|
- // 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;
|
||
|
|
||
|
--
|
||
|
2.24.0
|
||
|
|