summaryrefslogtreecommitdiff
path: root/devel/rust/musl-no-crt-static.patch
diff options
context:
space:
mode:
authorrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
committerrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
commitc82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch)
tree56d864b5a5c6c145edd96178ae219a8f90e191a6 /devel/rust/musl-no-crt-static.patch
downloadports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'devel/rust/musl-no-crt-static.patch')
-rw-r--r--devel/rust/musl-no-crt-static.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/devel/rust/musl-no-crt-static.patch b/devel/rust/musl-no-crt-static.patch
new file mode 100644
index 0000000..7e91ea2
--- /dev/null
+++ b/devel/rust/musl-no-crt-static.patch
@@ -0,0 +1,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()
+ }
+ }