Making a bunch of basic programs cross-buildable.

After this, the 'bootstrap-tools' can be cross-built.


svn path=/nixpkgs/branches/stdenv-updates/; revision=20945
This commit is contained in:
Lluís Batlle i Rossell
2010-04-04 18:10:42 +00:00
parent 2d261d1c1e
commit 19b9811012
9 changed files with 63 additions and 8 deletions
+4
View File
@@ -10,6 +10,10 @@ stdenv.mkDerivation {
makeFlags = ["TREE=\$(out)"];
crossAttrs = {
makeFlags = [ "TREE=\$(out)" "CC=${stdenv.cross.config}-gcc" ];
};
postInstall = "mv \$out/bin/replace \$out/bin/replace-literal";
patches = [./malloc.patch];