diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-07-30 09:27:55 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-08-22 13:01:47 -0500 |
commit | deadc0b0505fda1f8fa8f74168bac91497c2818e (patch) | |
tree | 50096884d85d99f6d6801d0fc82f62b55c8c61d7 /bootstrap/rust-1.73/0002-Fix-linking-to-zlib-when-cross-compiling.patch | |
parent | c2df0cfb7b126b4ccca129cb60b75c33d8005884 (diff) | |
download | packages-deadc0b0505fda1f8fa8f74168bac91497c2818e.tar.gz packages-deadc0b0505fda1f8fa8f74168bac91497c2818e.tar.bz2 packages-deadc0b0505fda1f8fa8f74168bac91497c2818e.tar.xz packages-deadc0b0505fda1f8fa8f74168bac91497c2818e.zip |
bootstrap/rust-1.{61-79}: New package
Diffstat (limited to 'bootstrap/rust-1.73/0002-Fix-linking-to-zlib-when-cross-compiling.patch')
-rw-r--r-- | bootstrap/rust-1.73/0002-Fix-linking-to-zlib-when-cross-compiling.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/bootstrap/rust-1.73/0002-Fix-linking-to-zlib-when-cross-compiling.patch b/bootstrap/rust-1.73/0002-Fix-linking-to-zlib-when-cross-compiling.patch new file mode 100644 index 000000000..d0e58d359 --- /dev/null +++ b/bootstrap/rust-1.73/0002-Fix-linking-to-zlib-when-cross-compiling.patch @@ -0,0 +1,34 @@ +From a4671a2a90a8d2201876859e5ff54c1c94d1ebb3 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/13] 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 4302b1618331d..8cb72375c6598 100644 +--- a/compiler/rustc_llvm/build.rs ++++ b/compiler/rustc_llvm/build.rs +@@ -237,10 +237,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); + + if (target.starts_with("arm") && !target.contains("freebsd")) + || target.starts_with("mips-") +@@ -258,7 +256,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") { |