diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-07-30 09:27:55 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-10-17 00:58:44 -0500 |
commit | 29e11a1231ed159572aa4e6c64fd9cdac97f7c03 (patch) | |
tree | 8abd711b96829786858c97afb381f16992d31c58 /bootstrap/rust-1.78/0010-Link-stage-2-tools-dynamically-to-libstd.patch | |
parent | 595bc02f3080bbf44fa78068e5b56e13821ab6a6 (diff) | |
download | packages-29e11a1231ed159572aa4e6c64fd9cdac97f7c03.tar.gz packages-29e11a1231ed159572aa4e6c64fd9cdac97f7c03.tar.bz2 packages-29e11a1231ed159572aa4e6c64fd9cdac97f7c03.tar.xz packages-29e11a1231ed159572aa4e6c64fd9cdac97f7c03.zip |
bootstrap/rust-1.{61-79}: New package
Diffstat (limited to 'bootstrap/rust-1.78/0010-Link-stage-2-tools-dynamically-to-libstd.patch')
-rw-r--r-- | bootstrap/rust-1.78/0010-Link-stage-2-tools-dynamically-to-libstd.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bootstrap/rust-1.78/0010-Link-stage-2-tools-dynamically-to-libstd.patch b/bootstrap/rust-1.78/0010-Link-stage-2-tools-dynamically-to-libstd.patch new file mode 100644 index 000000000..ae7c03c01 --- /dev/null +++ b/bootstrap/rust-1.78/0010-Link-stage-2-tools-dynamically-to-libstd.patch @@ -0,0 +1,22 @@ +From 4443dc788cea90bdb1f9e5f3d9b702a3be46d4ed Mon Sep 17 00:00:00 2001 +From: Samuel Holland <samuel@sholland.org> +Date: Mon, 24 Sep 2018 23:42:23 +0000 +Subject: [PATCH 10/12] Link stage 2 tools dynamically to libstd + +--- + src/bootstrap/src/core/builder.rs | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/bootstrap/src/core/builder.rs b/src/bootstrap/src/core/builder.rs +index cd276674dee6b..a16297b4fe6cc 100644 +--- a/src/bootstrap/src/core/builder.rs ++++ b/src/bootstrap/src/core/builder.rs +@@ -2031,7 +2031,7 @@ impl<'a> Builder<'a> { + // 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"); + } + |