Darwin: Use GCC 4.6 in `stdenvNix'.

svn path=/nixpkgs/trunk/; revision=33894
This commit is contained in:
Ludovic Courtès
2012-04-23 15:47:37 +00:00
parent 04600bbec1
commit 29bc53265d
4 changed files with 32 additions and 5 deletions

View File

@@ -27,7 +27,11 @@ stdenv.mkDerivation (rec {
enableParallelBuilding = true;
preBuild = ''sed -e "s@\([[:space:]]\)sh @\1''${SHELL} @" -i */Makefile Makefile'';
preBuild =
# On Darwin, we end up using the native `sed' during bootstrap, and it
# fails to run this command, which isn't needed anyway.
stdenv.lib.optionalString (!stdenv.isDarwin)
''sed -e "s@\([[:space:]]\)sh @\1''${SHELL} @" -i */Makefile Makefile'';
# When building a wide-character (Unicode) build, create backward
# compatibility links from the the "normal" libraries to the