* Renamed pkgs-ng to pkgs.
svn path=/nixpkgs/trunk/; revision=502
This commit is contained in:
17
pkgs/development/tools/misc/binutils/builder.sh
Executable file
17
pkgs/development/tools/misc/binutils/builder.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#! /bin/sh
|
||||
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
tar xvfj $src || exit 1
|
||||
cd binutils-* || exit 1
|
||||
|
||||
# Clear the default library search path.
|
||||
if test "$noSysDirs" == "1"; then
|
||||
echo 'NATIVE_LIB_DIRS=' >> ld/configure.tgt || exit 1
|
||||
fi
|
||||
|
||||
./configure --prefix=$out || exit 1
|
||||
make || exit 1
|
||||
make install || exit 1
|
||||
|
||||
strip -S $out/lib/*.a || exit 1
|
||||
11
pkgs/development/tools/misc/binutils/default.fix
Normal file
11
pkgs/development/tools/misc/binutils/default.fix
Normal file
@@ -0,0 +1,11 @@
|
||||
{stdenv, fetchurl}: derivation {
|
||||
name = "binutils-2.14";
|
||||
system = stdenv.system;
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = ftp://ftp.nluug.nl/pub/gnu/binutils/binutils-2.14.tar.bz2;
|
||||
md5 = "2da8def15d28af3ec6af0982709ae90a";
|
||||
};
|
||||
stdenv = stdenv;
|
||||
noSysDirs = stdenv.noSysDirs;
|
||||
}
|
||||
Reference in New Issue
Block a user