summaryrefslogtreecommitdiff
path: root/user/rust/0002-Fix-linking-to-zlib-when-cross-compiling.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 /user/rust/0002-Fix-linking-to-zlib-when-cross-compiling.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 'user/rust/0002-Fix-linking-to-zlib-when-cross-compiling.patch')
-rw-r--r--user/rust/0002-Fix-linking-to-zlib-when-cross-compiling.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/user/rust/0002-Fix-linking-to-zlib-when-cross-compiling.patch b/user/rust/0002-Fix-linking-to-zlib-when-cross-compiling.patch
deleted file mode 100644
index a78395597..000000000
--- a/user/rust/0002-Fix-linking-to-zlib-when-cross-compiling.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 702ebc6e2283f69e8b024b2cf12899a2bbdf6e8b Mon Sep 17 00:00:00 2001
-From: Samuel Holland <samuel@sholland.org>
-Date: Wed, 10 Jan 2018 13:36:41 -0600
-Subject: [PATCH 02/14] Fix linking to zlib when cross-compiling
-
----
- compiler/rustc_llvm/build.rs | 7 +++----
- 1 file changed, 3 insertions(+), 4 deletions(-)
-
-diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs
-index 3b6808d693f..4713f550a73 100644
---- a/compiler/rustc_llvm/build.rs
-+++ b/compiler/rustc_llvm/build.rs
-@@ -177,16 +177,15 @@ fn main() {
- // of llvm-config, not the target that we're attempting to link.
- let mut cmd = Command::new(&llvm_config);
- cmd.arg(llvm_link_arg).arg("--libs");
-+ cmd.arg("--system-libs");
-+ cmd.args(&components);
-
-- if !is_crossed {
-- cmd.arg("--system-libs");
-- } else if target.contains("windows-gnu") {
-+ if target.contains("windows-gnu") {
- println!("cargo:rustc-link-lib=shell32");
- println!("cargo:rustc-link-lib=uuid");
- } else if target.contains("netbsd") || target.contains("haiku") || target.contains("darwin") {
- println!("cargo:rustc-link-lib=z");
- }
-- cmd.args(&components);
-
- for lib in output(&mut cmd).split_whitespace() {
- let name = if let Some(stripped) = lib.strip_prefix("-l") {
---
-2.35.1
-