diff options
-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 5e01a83b7c0..01fdc2a087e 100644 --- a/pkgs/development/libraries/SDL2/default.nix +++ b/pkgs/development/libraries/SDL2/default.nix @@ -78,7 +78,7 @@ stdenv.mkDerivation rec { # You can grep SDL sources with `grep -rE 'SDL_(NAME|.*_SYM)'` to # confirm that they actually use most of the `propagatedBuildInputs` # from above in this way. This is pretty weird. - postFixup = '' + postFixup = optionalString (stdenv.hostPlatform.extensions.sharedLibrary == ".so") '' for lib in $out/lib/*.so* ; do if [[ -L "$lib" ]]; then patchelf --set-rpath "$(patchelf --print-rpath $lib):${lib.makeLibraryPath propagatedBuildInputs}" "$lib" |