summaryrefslogtreecommitdiff
path: root/bootstrap/rust-1.60/0012-Link-stage-2-tools-dynamically-to-libstd.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-07-24 21:23:49 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-10-17 00:58:43 -0500
commitac2d188aae804663b687ae82dbc3830257b9dd76 (patch)
tree405e3f6231f026fa4fdfa5b9597a99424fab9a08 /bootstrap/rust-1.60/0012-Link-stage-2-tools-dynamically-to-libstd.patch
parent93313d3bb206ac0c14ebe90154856ea36db70450 (diff)
downloadpackages-ac2d188aae804663b687ae82dbc3830257b9dd76.tar.gz
packages-ac2d188aae804663b687ae82dbc3830257b9dd76.tar.bz2
packages-ac2d188aae804663b687ae82dbc3830257b9dd76.tar.xz
packages-ac2d188aae804663b687ae82dbc3830257b9dd76.zip
user/rust: rename to bootstrap/rust-1.60
Diffstat (limited to 'bootstrap/rust-1.60/0012-Link-stage-2-tools-dynamically-to-libstd.patch')
-rw-r--r--bootstrap/rust-1.60/0012-Link-stage-2-tools-dynamically-to-libstd.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/bootstrap/rust-1.60/0012-Link-stage-2-tools-dynamically-to-libstd.patch b/bootstrap/rust-1.60/0012-Link-stage-2-tools-dynamically-to-libstd.patch
new file mode 100644
index 000000000..6f1c99212
--- /dev/null
+++ b/bootstrap/rust-1.60/0012-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 12/14] 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
+@@ -1639,7 +1639,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
+