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.
This commit is contained in:
Jelle Raaijmakers 2021-07-29 14:59:30 +02:00 committed by Andreas Kling
parent 5bb64c57f9
commit 16dbba3b8f

View file

@ -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() {