2cab55965b
Also remove option static_llvm and add option bindist, which helps simplify building bootstrap tarballs.
26 lines
1 KiB
Diff
26 lines
1 KiB
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/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.26.2
|
|
|