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:
parent
5bb64c57f9
commit
16dbba3b8f
Notes:
sideshowbarker
2024-07-18 07:47:39 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/16dbba3b8fa Pull-request: https://github.com/SerenityOS/serenity/pull/9087 Reviewed-by: https://github.com/linusg ✅
1 changed files with 2 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue