From 829bdc1cb00ee1674749e132595c4a82a2fd72a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sat, 29 Dec 2012 15:08:18 +0100 Subject: [PATCH] glibc: making 2.17 the glibc to use cross-building. --- pkgs/top-level/all-packages.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 75c532b9be62..f8bda7883334 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3663,7 +3663,7 @@ let glibc = glibc217; - glibcCross = glibc213Cross; + glibcCross = glibc217Cross; glibc213 = (callPackage ../development/libraries/glibc/2.13 { kernelHeaders = linuxHeaders; @@ -3673,7 +3673,15 @@ let gccCross = null; }) // (if crossSystem != null then { crossDrv = glibc213Cross; } else {}); - glibc213Cross = forceNativeDrv (makeOverridable (import ../development/libraries/glibc/2.13) + glibc217 = callPackage ../development/libraries/glibc/2.17 { + kernelHeaders = linuxHeaders; + installLocales = config.glibc.locales or false; + machHeaders = null; + hurdHeaders = null; + gccCross = null; + }; + + glibc217Cross = forceNativeDrv (makeOverridable (import ../development/libraries/glibc/2.17) (let crossGNU = crossSystem != null && crossSystem.config == "i586-pc-gnu"; in { inherit stdenv fetchurl; @@ -3686,13 +3694,6 @@ let inherit fetchgit; })); - glibc217 = callPackage ../development/libraries/glibc/2.17 { - kernelHeaders = linuxHeaders; - installLocales = config.glibc.locales or false; - machHeaders = null; - hurdHeaders = null; - gccCross = null; - }; # We can choose: libcCrossChooser = name : if name == "glibc" then glibcCross