SDL2: do not patchelf libSDL2.so twice

There are two symlinks pointing to the same library, libSDL2.so and
libSDL2-2.0.so.0.  patchelf should run on non-symlinks instead.
This commit is contained in:
Orivej Desh 2018-06-10 22:25:33 +00:00
parent 8d5570a041
commit 3db4ce91d0

View File

@ -80,7 +80,7 @@ stdenv.mkDerivation rec {
# from above in this way. This is pretty weird. # from above in this way. This is pretty weird.
postFixup = optionalString (stdenv.hostPlatform.extensions.sharedLibrary == ".so") '' postFixup = optionalString (stdenv.hostPlatform.extensions.sharedLibrary == ".so") ''
for lib in $out/lib/*.so* ; do for lib in $out/lib/*.so* ; do
if [[ -L "$lib" ]]; then if ! [[ -L "$lib" ]]; then
patchelf --set-rpath "$(patchelf --print-rpath $lib):${lib.makeLibraryPath propagatedBuildInputs}" "$lib" patchelf --set-rpath "$(patchelf --print-rpath $lib):${lib.makeLibraryPath propagatedBuildInputs}" "$lib"
fi fi
done done