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:
@@ -9,7 +9,7 @@ stdenv.mkDerivation {
|
||||
};
|
||||
|
||||
/* If no explicit coreutils is given, use the one from stdenv. */
|
||||
buildInputs = [coreutils];
|
||||
buildNativeInputs = [coreutils];
|
||||
|
||||
meta = {
|
||||
homepage = http://www.gnu.org/software/diffutils/diffutils.html;
|
||||
|
||||
@@ -17,6 +17,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = (stdenv.lib.optional doCheck ed);
|
||||
|
||||
crossAttrs = {
|
||||
configureFlags = [ "ac_cv_func_strnlen_working=yes" ];
|
||||
};
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user