diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-08-04 01:47:47 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-08-22 13:01:48 -0500 |
commit | 6735ff241e76fa4cc70b3727a2dbeeecfb014a2a (patch) | |
tree | 62c079c31857ca3cfc4a6d200accdca847eb4567 /user/rust/0002-Fix-linking-to-zlib-when-cross-compiling.patch | |
parent | 3744ee3ea585edf5e271f9f5c86482c997e893ab (diff) | |
download | packages-6735ff241e76fa4cc70b3727a2dbeeecfb014a2a.tar.gz packages-6735ff241e76fa4cc70b3727a2dbeeecfb014a2a.tar.bz2 packages-6735ff241e76fa4cc70b3727a2dbeeecfb014a2a.tar.xz packages-6735ff241e76fa4cc70b3727a2dbeeecfb014a2a.zip |
user/rust: Add version 1.80.0
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.patch | 34 |
1 files changed, 34 insertions, 0 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 new file mode 100644 index 000000000..d7c5fc1dc --- /dev/null +++ b/user/rust/0002-Fix-linking-to-zlib-when-cross-compiling.patch @@ -0,0 +1,34 @@ +From 9357baa3eede8062b7c17407d23c3d2102af8435 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/12] Fix linking to zlib when cross-compiling + +--- + compiler/rustc_llvm/build.rs | 7 ++----- + 1 file changed, 2 insertions(+), 5 deletions(-) + +diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs +index 4b0c1229da134..2d61b834c784b 100644 +--- a/compiler/rustc_llvm/build.rs ++++ b/compiler/rustc_llvm/build.rs +@@ -219,10 +219,8 @@ 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"); +- +- if !is_crossed { +- cmd.arg("--system-libs"); +- } ++ cmd.arg("--system-libs"); ++ cmd.args(&components); + + // We need libkstat for getHostCPUName on SPARC builds. + // See also: https://github.com/llvm/llvm-project/issues/64186 +@@ -255,7 +253,6 @@ fn main() { + println!("cargo:rustc-link-lib=z"); + println!("cargo:rustc-link-lib=execinfo"); + } +- cmd.args(&components); + + for lib in output(&mut cmd).split_whitespace() { + let name = if let Some(stripped) = lib.strip_prefix("-l") { |