summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-07-29 14:59:30 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-29 15:58:38 +0200
commit16dbba3b8fa9c9d5d407e75da4b8f04f5f4851d9 (patch)
treedb99118bb53b824de0d0c963c398129a4aebce09 /Ports
parent5bb64c57f92f42df47725b69bbd955f09fe8aef8 (diff)
downloadserenity-16dbba3b8fa9c9d5d407e75da4b8f04f5f4851d9.zip
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.
Diffstat (limited to 'Ports')
-rwxr-xr-xPorts/zlib/package.sh3
1 files changed, 2 insertions, 1 deletions
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() {