From 9ce7b293935fdd24d6b7161f07dbad550efaebcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 10 Apr 2013 17:48:00 +0200 Subject: [PATCH] gcc-wrapper: avoiding one glibc rebuild, for gcc.crossDrv In fact 'glibc.crossDrv' didn't work. I'm not sure it should work; I think it isn't required for much. --- pkgs/build-support/gcc-wrapper/default.nix | 2 +- pkgs/development/compilers/gcc/4.6/default.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/gcc-wrapper/default.nix b/pkgs/build-support/gcc-wrapper/default.nix index 87617621e64..992c0f9af37 100644 --- a/pkgs/build-support/gcc-wrapper/default.nix +++ b/pkgs/build-support/gcc-wrapper/default.nix @@ -57,7 +57,7 @@ stdenv.mkDerivation { crossAttrs = { shell = shell.crossDrv + shell.crossDrv.shellPath; - libc = libc.crossDrv; + libc = stdenv.gccCross.libc; coreutils = coreutils.crossDrv; binutils = binutils.crossDrv; gcc = gcc.crossDrv; diff --git a/pkgs/development/compilers/gcc/4.6/default.nix b/pkgs/development/compilers/gcc/4.6/default.nix index d95e161ba23..6713dd12b3c 100644 --- a/pkgs/development/compilers/gcc/4.6/default.nix +++ b/pkgs/development/compilers/gcc/4.6/default.nix @@ -333,6 +333,7 @@ stdenv.mkDerivation ({ crossAttrs = { patches = patches ++ [ ./hurd-sigrtmin.patch ]; + postPatch = ""; AR = "${stdenv.cross.config}-ar"; LD = "${stdenv.cross.config}-ld"; CC = "${stdenv.cross.config}-gcc";