From 16dbba3b8fa9c9d5d407e75da4b8f04f5f4851d9 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Thu, 29 Jul 2021 14:59:30 +0200 Subject: [PATCH] Ports: Force cross compiling for zlib By setting `--uname=Linux`, we tell `configure` to use the right tools for cross compilation. Without this on e.g. macOS it would try to use XCode's `libtool` which would then fail. --- Ports/zlib/package.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ports/zlib/package.sh b/Ports/zlib/package.sh index 03881cd6ba..aaad451c82 100755 --- a/Ports/zlib/package.sh +++ b/Ports/zlib/package.sh @@ -6,7 +6,8 @@ files="https://www.zlib.net/zlib-${version}.tar.gz zlib-${version}.tar.gz c3e5e9 auth_type="sha256" configure() { - run ./configure + # Set uname to linux to prevent it finding the host's `libtool` on e.g. Darwin + run ./configure --uname=linux } install() {