diff options
| author | Arthur Zamarin <arthurzam@gentoo.org> | 2024-11-30 09:12:11 +0000 |
|---|---|---|
| committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-12-01 08:23:28 +0000 |
| commit | aebc3a66a98a760234d3f4e2d00bf9a917515ebe (patch) | |
| tree | e6a856624ecacb5c2820457c6e7e255d15225731 /dev-lang/rust/files/1.83.0-cross-compile-libz.patch | |
| parent | d3d4384f9b643e10962b5a6b62ffc3b038e50576 (diff) | |
| download | gentoo-aebc3a66a98a760234d3f4e2d00bf9a917515ebe.tar.gz gentoo-aebc3a66a98a760234d3f4e2d00bf9a917515ebe.tar.bz2 gentoo-aebc3a66a98a760234d3f4e2d00bf9a917515ebe.zip | |
dev-lang/rust: add 1.83.0
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-lang/rust/files/1.83.0-cross-compile-libz.patch')
| -rw-r--r-- | dev-lang/rust/files/1.83.0-cross-compile-libz.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-lang/rust/files/1.83.0-cross-compile-libz.patch b/dev-lang/rust/files/1.83.0-cross-compile-libz.patch new file mode 100644 index 000000000000..12844fd7efc7 --- /dev/null +++ b/dev-lang/rust/files/1.83.0-cross-compile-libz.patch @@ -0,0 +1,21 @@ +https://paste.sr.ht/~kchibisov/682321e0fd4a3ece4a4b7b71591896f5cd3cdb22 +https://github.com/gentoo/gentoo/pull/35246#discussion_r1484525497 + +diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs +index f606fa483ca..8a2e1c40e8b 100644 +--- a/compiler/rustc_llvm/build.rs ++++ b/compiler/rustc_llvm/build.rs +@@ -220,12 +220,7 @@ + let mut cmd = Command::new(&llvm_config); + cmd.arg(llvm_link_arg).arg("--libs"); + +- // Don't link system libs if cross-compiling unless targetting Windows. +- // On Windows system DLLs aren't linked directly, instead import libraries are used. +- // These import libraries are independent of the host. +- if !is_crossed || target.contains("windows") { +- cmd.arg("--system-libs"); +- } ++ cmd.arg("--system-libs"); + + // We need libkstat for getHostCPUName on SPARC builds. + // See also: https://github.com/llvm/llvm-project/issues/64186 |
