summaryrefslogtreecommitdiff
path: root/devel/rust/musl-no-crt-static.patch
blob: 7e91ea27e7e300a7249a460681fd61648a923a02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/compiler/rustc_target/src/spec/base/linux_musl.rs
+++ b/compiler/rustc_target/src/spec/base/linux_musl.rs
@@ -1,11 +1,10 @@
-use crate::spec::{Env, LinkSelfContainedDefault, TargetOptions, base, crt_objects};
+use crate::spec::{Env, TargetOptions, base};
 
 pub(crate) fn opts() -> TargetOptions {
     TargetOptions {
         env: Env::Musl,
-        pre_link_objects_self_contained: crt_objects::pre_musl_self_contained(),
-        post_link_objects_self_contained: crt_objects::post_musl_self_contained(),
-        link_self_contained: LinkSelfContainedDefault::InferredForMusl,
+        crt_static_default: false,
+        crt_static_allows_dylibs: true,
         ..base::linux::opts()
     }
 }