diff options
author | Orivej Desh <orivej@gmx.fr> | 2018-06-10 22:25:33 +0000 |
---|---|---|
committer | Orivej Desh <orivej@gmx.fr> | 2018-07-02 21:34:33 +0000 |
commit | 3db4ce91d04d03f9add52b4e97c07a1666d58d7f (patch) | |
tree | 8af79dc1cc0af91ad3783bf2b90410932691f6ef /pkgs/development/libraries/SDL2 | |
parent | 8d5570a04163549bc266f58d62d612bd7f7c8b8b (diff) |
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.
Diffstat (limited to 'pkgs/development/libraries/SDL2')
-rw-r--r-- | pkgs/development/libraries/SDL2/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/SDL2/default.nix b/pkgs/development/libraries/SDL2/default.nix index 01fdc2a087ef8..990daf19685dd 100644 --- a/pkgs/development/libraries/SDL2/default.nix +++ b/pkgs/development/libraries/SDL2/default.nix @@ -80,7 +80,7 @@ stdenv.mkDerivation rec { # from above in this way. This is pretty weird. postFixup = optionalString (stdenv.hostPlatform.extensions.sharedLibrary == ".so") '' 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" fi done |