add a builder for a statically linked binutils (for the initial stdenv build process). This needs the references to glibc nuked as well...

svn path=/nixpkgs/trunk/; revision=6054
This commit is contained in:
Armijn Hemel 2006-08-05 10:55:58 +00:00
parent 68e7009fcc
commit 1c1ad8b285
3 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,11 @@
{stdenv, fetchurl, noSysDirs}:
stdenv.mkDerivation {
name = "binutils-2.17";
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nluug.nl/pub/gnu/binutils/binutils-2.17.tar.bz2;
md5 = "e26e2e06b6e4bf3acf1dc8688a94c0d1";
};
inherit noSysDirs;
}

View File

@ -0,0 +1,21 @@
source $stdenv/setup
configureFlags=" --disable-nls --disable-shared --enable-static"
makeFlags="LDFLAGS=-all-static"
patchConfigure() {
# Clear the default library search path.
if test "$noSysDirs" = "1"; then
echo 'NATIVE_LIB_DIRS=' >> ld/configure.tgt
fi
}
preConfigure=patchConfigure
preBuild() {
make configure-host
}
preBuild=preBuild
genericBuild

View File

@ -0,0 +1,11 @@
{stdenv, fetchurl, noSysDirs}:
stdenv.mkDerivation {
name = "binutils-2.16.1";
builder = ./builder.sh;
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/binutils-2.16.1.tar.bz2;
md5 = "6a9d529efb285071dad10e1f3d2b2967";
};
inherit noSysDirs;
}