Created
January 26, 2024 14:23
-
-
Save formula-spectre/d8e678009f05e94def5e84443688e1dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From e42709c46647dab342b826d30324f3e6e5590e00 Mon Sep 17 00:00:00 2001 | |
From: Jory Pratt <anarchy@gentoo.org> | |
Date: Tue, 2 Aug 2022 18:32:53 -0500 | |
Subject: [PATCH] Enable dynamic linking by default for musl | |
Signed-off-by: Jory Pratt <anarchy@gentoo.org> | |
--- | |
compiler/rustc_target/src/spec/linux_musl_base.rs | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/compiler/rustc_target/src/spec/linux_musl_base.rs b/compiler/rustc_target/src/spec/linux_musl_base.rs | |
index 207a87ab0..8a5a43363 100644 | |
--- a/compiler/rustc_target/src/spec/linux_musl_base.rs | |
+++ b/compiler/rustc_target/src/spec/linux_musl_base.rs | |
@@ -10,7 +10,7 @@ pub fn opts() -> TargetOptions { | |
base.crt_objects_fallback = Some(CrtObjectsFallback::Musl); | |
// These targets statically link libc by default | |
- base.crt_static_default = true; | |
+ base.crt_static_default = false; | |
base | |
} | |
-- | |
2.35.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment