move binutils-arm to binutils-cross. Also, add binutils for mips-linux in a

more generic way. Still, there is a lot of room for improvement.

svn path=/nixpkgs/trunk/; revision=4458
This commit is contained in:
Armijn Hemel
2005-12-31 03:46:20 +00:00
parent fec867b5f2
commit 8b10549f2e
3 changed files with 20 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
source $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, cross}:
stdenv.mkDerivation {
name = "binutils-2.16.1";
builder = ./builder.sh;
src = fetchurl {
url = http://ftp.nluug.nl/gnu/binutils/binutils-2.16.1.tar.bz2;
md5 = "6a9d529efb285071dad10e1f3d2b2967";
};
inherit noSysDirs;
configureFlags = if cross=="arm-linux" then "--target=arm-linux" else if cross=="mips-linux" then "--target=mips-linux" else "";
}