From 24cc41056253d05bb041d780c55cc79c480ab616 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Tue, 8 Oct 2024 12:58:44 +0200 Subject: [PATCH] libz-sys: allow cross-building MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler Gbp-Pq: Topic vendor Gbp-Pq: Name libz-sys-allow-cross-building.patch --- 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 cab160ae6e..810084ec2e 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); } -- 2.30.2