summaryrefslogtreecommitdiff
path: root/Ports/SDL2_mixer/package.sh
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/SDL2_mixer/package.sh
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/SDL2_mixer/package.sh')
-rwxr-xr-xPorts/SDL2_mixer/package.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/Ports/SDL2_mixer/package.sh b/Ports/SDL2_mixer/package.sh
index 7d53e83ced..80e2300306 100755
--- a/Ports/SDL2_mixer/package.sh
+++ b/Ports/SDL2_mixer/package.sh
@@ -20,4 +20,6 @@ build() {
install() {
run make -k DESTDIR="${SERENITY_BUILD_DIR}/Root" install
+ ${CC} -shared -o $DESTDIR/usr/local/lib/libSDL2_mixer.so -Wl,--whole-archive $DESTDIR/usr/local/lib/libSDL2_mixer.a -Wl,--no-whole-archive -Wl,--no-as-needed -lvorbis -lvorbisfile
+ rm -f $DESTDIR/usr/local/lib/libSDL2_mixer.la
}