GNU libc 2.14: Fix cross-GNU builds.

svn path=/nixpkgs/branches/stdenv-updates/; revision=32367
This commit is contained in:
Ludovic Courtès
2012-02-17 20:37:31 +00:00
parent da3ecd1256
commit d4742ad714
+6 -3
View File
@@ -3576,15 +3576,18 @@ let
in ({ in ({
inherit stdenv fetchurl; inherit stdenv fetchurl;
gccCross = gccCrossStageStatic; gccCross = gccCrossStageStatic;
kernelHeaders = if crossGNU then hurdHeaders else linuxHeadersCross; kernelHeaders = if crossGNU then gnu.hurdHeaders else linuxHeadersCross;
installLocales = getConfig [ "glibc" "locales" ] false; installLocales = getConfig [ "glibc" "locales" ] false;
} }
// //
(if crossGNU (if crossGNU
then { inherit machHeaders hurdHeaders mig fetchgit; } then {
else { })))); inherit (gnu) machHeaders hurdHeaders libpthreadHeaders mig;
inherit fetchgit;
}
else { })));
# We can choose: # We can choose:
libcCrossChooser = name : if (name == "glibc") then glibcCross libcCrossChooser = name : if (name == "glibc") then glibcCross