add binutils for use in a crosscompiler, hosted on x86 though.

svn path=/nixpkgs/trunk/; revision=4214
This commit is contained in:
Armijn Hemel 2005-11-03 23:20:43 +00:00
parent 94b27fcf98
commit 4431b8377b
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,12 @@
. $stdenv/setup
patchConfigure() {
# Clear the default library search path.
if test "$noSysDirs" = "1"; then
echo 'NATIVE_LIB_DIRS=' >> ld/configure.tgt
fi
}
preConfigure=patchConfigure
genericBuild

View File

@ -0,0 +1,12 @@
{stdenv, fetchurl, noSysDirs}:
stdenv.mkDerivation {
name = "binutils-2.16.1-arm";
builder = ./builder.sh;
src = fetchurl {
url = http://ftp.nluug.nl/gnu/binutils/binutils-2.16.1.tar.bz2;
md5 = "6a9d529efb285071dad10e1f3d2b2967";
};
inherit noSysDirs;
configureFlags = "--target=arm-linux";
}