Fix SDL_image loading jpeg and others

It was using dlopen and its shared object didn't have the proper rpath
to do so.

This fixes tuxpaint loading of jpeg pictures.
This commit is contained in:
Lluís Batlle i Rossell 2020-11-08 17:51:50 +01:00 committed by viric
parent 197ddbced2
commit 5813ab6de2

View File

@ -17,7 +17,12 @@ stdenv.mkDerivation rec {
}) })
]; ];
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest"; configureFlags = [
# Disable its dynamic loading or dlopen will fail because of no proper rpath
"--disable-jpg-shared"
"--disable-png-shared"
"--disable-tif-shared"
] ++ stdenv.lib.optional stdenv.isDarwin "--disable-sdltest";
buildInputs = [ SDL libpng libjpeg libtiff libungif libXpm ]; buildInputs = [ SDL libpng libjpeg libtiff libungif libXpm ];