File: libz-sys-allow-cross-building.patch

package info (click to toggle)
rustc 1.86.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid
  • size: 913,560 kB
  • sloc: xml: 158,127; python: 35,921; javascript: 19,689; sh: 19,600; cpp: 18,906; ansic: 13,124; asm: 4,376; makefile: 708; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (32 lines) | stat: -rw-r--r-- 1,193 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: =?utf-8?q?Fabian_Gr=C3=BCnbichler?= <debian@fabian.gruenbichler.email>
Date: Tue, 8 Oct 2024 12:58:44 +0200
Subject: libz-sys: allow cross-building
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
---
 vendor/libz-sys-1.1.21/build.rs | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/vendor/libz-sys-1.1.21/build.rs b/vendor/libz-sys-1.1.21/build.rs
index 6e17cc8..90d4e4c 100644
--- a/vendor/libz-sys-1.1.21/build.rs
+++ b/vendor/libz-sys-1.1.21/build.rs
@@ -81,12 +81,10 @@ fn main() {
     //
     // Apple platforms have libz.1.dylib, and it's usually available even when
     // cross compiling (via fat binary or in the target's Xcode SDK)
+    //
+    // Debian: allow cross-building!
     let cross_compiling = target != host;
-    if target.contains("msvc")
-        || target.contains("pc-windows-gnu")
-        || want_static
-        || (cross_compiling && !target.contains("-apple-"))
-    {
+    if target.contains("msvc") || target.contains("pc-windows-gnu") || want_static {
         return build_zlib(&mut cfg, &target);
     }