mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:07:45 +00:00
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.
This commit is contained in:
parent
100714b8ac
commit
a050d91073
1 changed files with 5 additions and 8 deletions
|
@ -5,12 +5,9 @@ useconfigure=true
|
||||||
files="https://www.zlib.net/zlib-${version}.tar.gz zlib-${version}.tar.gz b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30"
|
files="https://www.zlib.net/zlib-${version}.tar.gz zlib-${version}.tar.gz b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30"
|
||||||
|
|
||||||
configure() {
|
configure() {
|
||||||
# Set uname to linux to prevent it finding the host's `libtool` on e.g. Darwin
|
# No SONAME is set on unknown systems by default. Manually set it
|
||||||
run ./configure --uname=linux
|
# to an unversioned name to avoid needing to rebuild dependent
|
||||||
}
|
# ports after a minor version upgrade.
|
||||||
|
export LDSHARED="$CC -shared -Wl,-soname,libz.so"
|
||||||
install() {
|
run ./configure --uname=SerenityOS
|
||||||
run make DESTDIR=${SERENITY_INSTALL_ROOT} "${installopts[@]}" install
|
|
||||||
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libz.so -Wl,-soname,libz.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libz.a -Wl,--no-whole-archive
|
|
||||||
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libz.la
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue