myEnv: making it not to add -rpath /lib

NIX_LDFLAGS was left with "-rpath /lib", which is annoying on non-nixos.
This commit is contained in:
Lluís Batlle i Rossell 2012-11-22 10:54:56 +01:00
parent 7a16291828
commit 5c09167b67

View File

@ -95,6 +95,8 @@ mkDerivation {
phases=
# only do all the setup stuff in nix-support/*
set +e
# This prevents having -rpath /lib in NIX_LDFLAGS
export NIX_NO_SELF_RPATH=1
if [[ -z "\$ZSH_VERSION" ]]; then
source "$s"
else