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:
parent
68e7009fcc
commit
1c1ad8b285
@ -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;
|
||||
}
|
21
pkgs/development/tools/misc/binutils-static/builder.sh
Normal file
21
pkgs/development/tools/misc/binutils-static/builder.sh
Normal 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
|
11
pkgs/development/tools/misc/binutils-static/default.nix
Normal file
11
pkgs/development/tools/misc/binutils-static/default.nix
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user