fix compilation so we can build a statically linked gcc with an impure environment. Needs "noSysDirs = false" passed as a parameter in all-packages.nix, or whatever.

svn path=/nixpkgs/trunk/; revision=6247
This commit is contained in:
Armijn Hemel 2006-08-25 23:24:41 +00:00
parent b6811b43f1
commit 6c7ea78070
2 changed files with 3 additions and 3 deletions

View file

@ -41,8 +41,8 @@ if test "$noSysDirs" = "1"; then
export LDFLAGS=$extraLDFlags export LDFLAGS=$extraLDFlags
fi fi
else #else
patches="" # patches=""
fi fi

View file

@ -8,6 +8,6 @@ stdenv.mkDerivation {
md5 = "4a21ac777d4b5617283ce488b808da7b"; md5 = "4a21ac777d4b5617283ce488b808da7b";
}; };
# !!! apply only if noSysDirs is set # !!! apply only if noSysDirs is set
patches = [./no-sys-dirs.patch];
inherit noSysDirs; inherit noSysDirs;
patches = if noSysDirs then [./no-sys-dirs.patch] else [./ldflags.patch];
} }