summaryrefslogtreecommitdiff
path: root/experimental/mrustc/rustc-0011-Link-stage-2-tools-dynamically-to-libstd.patch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2024-12-18 03:03:48 +0000
committerZach van Rijn <me@zv.io>2024-12-18 03:03:48 +0000
commit90c4ae64bb28a5e16eea6a85ddaef7d227ef11e7 (patch)
tree82cfad28f5fb8aab2216147ffb523dc1395b8db5 /experimental/mrustc/rustc-0011-Link-stage-2-tools-dynamically-to-libstd.patch
parent803c617fc610d5872e32c08f362586d550d87701 (diff)
downloadpackages-zv/mrustc.tar.gz
packages-zv/mrustc.tar.bz2
packages-zv/mrustc.tar.xz
packages-zv/mrustc.zip
add adelie rust patches?zv/mrustc
Diffstat (limited to 'experimental/mrustc/rustc-0011-Link-stage-2-tools-dynamically-to-libstd.patch')
-rw-r--r--experimental/mrustc/rustc-0011-Link-stage-2-tools-dynamically-to-libstd.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/experimental/mrustc/rustc-0011-Link-stage-2-tools-dynamically-to-libstd.patch b/experimental/mrustc/rustc-0011-Link-stage-2-tools-dynamically-to-libstd.patch
new file mode 100644
index 000000000..daea4dcce
--- /dev/null
+++ b/experimental/mrustc/rustc-0011-Link-stage-2-tools-dynamically-to-libstd.patch
@@ -0,0 +1,25 @@
+From 74767e8d9cad131d8fb67054df8110065649e6dd Mon Sep 17 00:00:00 2001
+From: Samuel Holland <samuel@sholland.org>
+Date: Mon, 24 Sep 2018 23:42:23 +0000
+Subject: [PATCH 11/13] Link stage 2 tools dynamically to libstd
+
+---
+ src/bootstrap/builder.rs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs
+index 0d387ff1e37..f3ecd9067d3 100644
+--- a/src/bootstrap/builder.rs
++++ b/src/bootstrap/builder.rs
+@@ -2013,7 +2013,7 @@ pub fn cargo(
+ // When we build Rust dylibs they're all intended for intermediate
+ // usage, so make sure we pass the -Cprefer-dynamic flag instead of
+ // linking all deps statically into the dylib.
+- if matches!(mode, Mode::Std | Mode::Rustc) {
++ if matches!(mode, Mode::Std | Mode::Rustc | Mode::ToolRustc) {
+ rustflags.arg("-Cprefer-dynamic");
+ }
+
+--
+2.35.1
+