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:
@@ -16,6 +16,10 @@ stdenv.mkDerivation rec {
|
||||
++ stdenv.lib.optional aclSupport acl.hostDrv
|
||||
++ stdenv.lib.optional (stdenv.gccCross.libc ? libiconv)
|
||||
stdenv.gccCross.libc.libiconv.hostDrv;
|
||||
|
||||
# Needed for fstatfs()
|
||||
# I don't know why it is not properly detected cross building with glibc.
|
||||
configureFlags = [ "fu_cv_sys_stat_statfs2_bsize=yes" ];
|
||||
};
|
||||
|
||||
# The tests are known broken on Cygwin
|
||||
|
||||
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0f61phan4q8w5i1lz768q973c1spfqgvc470jc89rpg0gxfvi9bp";
|
||||
};
|
||||
|
||||
buildInputs = [coreutils];
|
||||
buildNativeInputs = [coreutils];
|
||||
|
||||
patches = [ ./findutils-path.patch ./change_echo_path.patch ]
|
||||
# Note: the dietlibc patch is just to get findutils to compile.
|
||||
@@ -17,6 +17,11 @@ stdenv.mkDerivation rec {
|
||||
|
||||
doCheck = true;
|
||||
|
||||
crossAttrs = {
|
||||
# http://osdir.com/ml/bug-findutils-gnu/2009-08/msg00026.html
|
||||
configureFlags = [ "gl_cv_func_wcwidth_works=yes" ];
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = http://www.gnu.org/software/findutils/;
|
||||
description = "GNU Find Utilities, the basic directory searching utilities of the GNU operating system";
|
||||
|
||||
Reference in New Issue
Block a user