* Don't include /var/run/current-system/sw/lib in the LD_LIBRARY_PATH
by default since this can really make the functioning of applications unpredictable as they can pick up arbitrary library versions from that directory. LD_LIBRARY_PATH should only contain very specific paths (like /var/run/opengl-driver/lib for overriding the system OpenGL implementation, or the NSS module path). This is even more important given that the stdenv-updates branch uses RUNPATHs instead of RPATHs, so *all* libraries are overridable by LD_LIBRARY_PATH. svn path=/nixos/trunk/; revision=11967
This commit is contained in:
parent
bd33b3e756
commit
df241fd6ed
|
@ -1,7 +1,7 @@
|
||||||
export PATH=@wrapperDir@:/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin
|
export PATH=@wrapperDir@:/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin
|
||||||
export LD_LIBRARY_PATH=/var/run/current-system/sw/lib
|
export LD_LIBRARY_PATH=/var/run/opengl-driver/lib
|
||||||
if test -n "@nssModulesPath@"; then
|
if test -n "@nssModulesPath@"; then
|
||||||
LD_LIBRARY_PATH=@nssModulesPath@:$LD_LIBRARY_PATH
|
LD_LIBRARY_PATH=@nssModulesPath@$:$LD_LIBRARY_PATH
|
||||||
fi
|
fi
|
||||||
export MODULE_DIR=@modulesTree@/lib/modules
|
export MODULE_DIR=@modulesTree@/lib/modules
|
||||||
export NIXPKGS_CONFIG=/nix/etc/config.nix
|
export NIXPKGS_CONFIG=/nix/etc/config.nix
|
||||||
|
|
Loading…
Reference in New Issue