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.20/build.rs | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/vendor/libz-sys-1.1.20/build.rs b/vendor/libz-sys-1.1.20/build.rs
index cab160a..810084e 100644
--- a/vendor/libz-sys-1.1.20/build.rs
+++ b/vendor/libz-sys-1.1.20/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);
}
|