summaryrefslogtreecommitdiff
path: root/Ports/zlib
diff options
context:
space:
mode:
authorGunnar Beutner <gunnar@beutner.name>2021-04-15 15:46:40 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-16 19:04:24 +0200
commitda92c0e1ca2be53df4a7889090656b428869d140 (patch)
tree024477eb4190eade300d754d952764aca4902ad0 /Ports/zlib
parentc9d535868506dfede9e79ff2af01435e9bdea420 (diff)
downloadserenity-da92c0e1ca2be53df4a7889090656b428869d140.zip
Ports: Build shared libraries for a few more ports
This manually builds shared libraries for a bunch of ports. Using libtool would be preferable but that's currently broken so I'm linking the shared libraries manually.
Diffstat (limited to 'Ports/zlib')
-rwxr-xr-xPorts/zlib/package.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/Ports/zlib/package.sh b/Ports/zlib/package.sh
index d1fa5292f1..d174531bdb 100755
--- a/Ports/zlib/package.sh
+++ b/Ports/zlib/package.sh
@@ -10,5 +10,11 @@ auth_import_key="783FCD8E58BCAFBA"
auth_opts="zlib-${version}.tar.gz.asc"
configure() {
- run ./configure --static
+ run ./configure
+}
+
+install() {
+ run make DESTDIR=$DESTDIR $installopts install
+ ${CC} -shared -o $DESTDIR/usr/local/lib/libz.so -Wl,--whole-archive $DESTDIR/usr/local/lib/libz.a -Wl,--no-whole-archive
+ rm -f $DESTDIR/usr/local/lib/libz.la
}