serenity/Ports/zlib/package.sh
Daniel Bertalan a050d91073 Ports/zlib: Do not manually link zlib into a shared library
Instead, pass our system name to its (non-autotools) configure script.
Tell it to include a SONAME to avoid breaking dependent ports when
updating zlib.
2023-08-05 01:05:06 +02:00

14 lines
516 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port=zlib
version=1.2.13
useconfigure=true
files="https://www.zlib.net/zlib-${version}.tar.gz zlib-${version}.tar.gz b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30"
configure() {
# No SONAME is set on unknown systems by default. Manually set it
# to an unversioned name to avoid needing to rebuild dependent
# ports after a minor version upgrade.
export LDSHARED="$CC -shared -Wl,-soname,libz.so"
run ./configure --uname=SerenityOS
}