From 4104846bd1bf440eb6790401f31058140001e6cf Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 17 Apr 2021 21:42:17 +0200 Subject: [PATCH] Ports: Fix dependency and linker options for SDL2_image --- Ports/SDL2_image/package.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ports/SDL2_image/package.sh b/Ports/SDL2_image/package.sh index 842360a9d22e44..f5c43f3e2b10ee 100755 --- a/Ports/SDL2_image/package.sh +++ b/Ports/SDL2_image/package.sh @@ -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 @@ -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 }