summaryrefslogtreecommitdiff
path: root/Ports/libogg
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/libogg
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/libogg')
-rwxr-xr-xPorts/libogg/package.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/Ports/libogg/package.sh b/Ports/libogg/package.sh
index 97fcbd22c4..ec203ce436 100755
--- a/Ports/libogg/package.sh
+++ b/Ports/libogg/package.sh
@@ -3,3 +3,9 @@ port=libogg
version=1.3.4
useconfigure=true
files="https://github.com/xiph/ogg/releases/download/v${version}/libogg-${version}.tar.gz libogg-${version}.tar.gz"
+
+install() {
+ run make DESTDIR=$DESTDIR $installopts install
+ ${CC} -shared -o $DESTDIR/usr/local/lib/libogg.so -Wl,--whole-archive $DESTDIR/usr/local/lib/libogg.a -Wl,--no-whole-archive
+ rm -f $DESTDIR/usr/local/lib/libogg.la
+}