glibc: Check whether `crossSystem' is null before accessing it.

svn path=/nixpkgs/trunk/; revision=21756
This commit is contained in:
Ludovic Courtès 2010-05-12 20:49:57 +00:00
parent 146cfcba6c
commit 632ad9e73c

View File

@ -3902,7 +3902,7 @@ let
}; };
glibc211Cross = forceBuildDrv (makeOverridable (import ../development/libraries/glibc-2.11) glibc211Cross = forceBuildDrv (makeOverridable (import ../development/libraries/glibc-2.11)
(let crossGNU = (crossSystem.config == "i586-pc-gnu"); (let crossGNU = (crossSystem != null && crossSystem.config == "i586-pc-gnu");
in ({ in ({
inherit stdenv fetchurl; inherit stdenv fetchurl;
gccCross = gccCrossStageStatic; gccCross = gccCrossStageStatic;