diff options
author | Gunnar Beutner <gunnar@beutner.name> | 2021-04-15 15:46:40 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-16 19:04:24 +0200 |
commit | da92c0e1ca2be53df4a7889090656b428869d140 (patch) | |
tree | 024477eb4190eade300d754d952764aca4902ad0 /Ports/zlib | |
parent | c9d535868506dfede9e79ff2af01435e9bdea420 (diff) | |
download | serenity-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-x | Ports/zlib/package.sh | 8 |
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 } |