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/SDL2_ttf | |
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/SDL2_ttf')
-rwxr-xr-x | Ports/SDL2_ttf/package.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Ports/SDL2_ttf/package.sh b/Ports/SDL2_ttf/package.sh index 08a3bdcd3c..61f35dd8eb 100755 --- a/Ports/SDL2_ttf/package.sh +++ b/Ports/SDL2_ttf/package.sh @@ -13,3 +13,8 @@ configure() { FT2_CFLAGS="-I${SERENITY_BUILD_DIR}/Root/usr/local/include/freetype2" \ LIBS="-lgui -lgfx -lipc -lcore -lcompress" } + +install() { + run make install DESTDIR=$DESTDIR $installopts + run ${CC} -shared -o $DESTDIR/usr/local/lib/libSDL2_ttf.so -Wl,--whole-archive $DESTDIR/usr/local/lib/libSDL2_ttf.a -Wl,--no-whole-archive +} |