forked from mirrors/nixpkgs
steam: workaround segfault at startup.
I don't know why, if I call ld-linux.so.2 to launch the game, it segfaults, so I renamed it to ld.so.
This commit is contained in:
parent
c75cccc469
commit
10f722dc04
|
@ -52,10 +52,11 @@ stdenv.mkDerivation rec {
|
|||
export LD_LIBRARY_PATH="\$STEAMBINDIR:\$LD_LIBRARY_PATH"
|
||||
export SDL_VIDEO_X11_DGAMOUSE=0
|
||||
cd "\$STEAMROOT"
|
||||
cp ${glibc215}/lib/ld-linux.so.2 "\$STEAMBINDIR"
|
||||
chmod u+w "\$STEAMBINDIR/ld-linux.so.2"
|
||||
LDSO="\$STEAMBINDIR\ld.so"
|
||||
cp ${glibc215}/lib/ld-linux.so.2 "\$LDSO"
|
||||
chmod u+w "\$LDSO"
|
||||
echo \$\$ > "\$PIDFILE" # pid of the shell will become pid of steam
|
||||
exec "\$STEAMBINDIR/ld-linux.so.2" "\$STEAMBINDIR/steam"
|
||||
exec "\$LDSO" "\$STEAMBINDIR/steam"
|
||||
else
|
||||
export PATH=${xz}/bin:\$PATH
|
||||
exec $out/bin/.steam-wrapped
|
||||
|
|
Loading…
Reference in a new issue