Skip to content

Commit

Permalink
Ports: Fix dependency and linker options for SDL2_image
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarbeutner authored and awesomekling committed Apr 18, 2021
1 parent f682c9f commit 4104846
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Ports/SDL2_image/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
port=SDL2_image
useconfigure=true
version=2.0.5
depends="SDL2 libpng libjpeg"
depends="SDL2 libpng libjpeg libtiff"
files="https://www.libsdl.org/projects/SDL_image/release/SDL2_image-${version}.tar.gz SDL_image-${version}.tar.gz f26f3a153360a8f09ed5220ef7b07aea"
auth_type=md5

Expand All @@ -20,6 +20,6 @@ build() {

install() {
run make -k DESTDIR="${SERENITY_BUILD_DIR}/Root" install
${CC} -shared -o $DESTDIR/usr/local/lib/libSDL2_image.so -Wl,--whole-archive $DESTDIR/usr/local/lib/libSDL2_image.a -Wl,--no-whole-archive
${CC} -shared -o $DESTDIR/usr/local/lib/libSDL2_image.so -Wl,--whole-archive $DESTDIR/usr/local/lib/libSDL2_image.a -Wl,--no-whole-archive -lpng -ljpeg -ltiff
rm -f $DESTDIR/usr/local/lib/libSDL2_image.la
}

0 comments on commit 4104846

Please sign in to comment.