2004-03-11 17:26:14 +00:00
|
|
|
{stdenv, fetchurl, noSysDirs}:
|
2004-03-09 17:16:02 +00:00
|
|
|
|
2008-10-29 08:57:58 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2009-11-08 00:32:12 +00:00
|
|
|
name = "binutils-2.20";
|
|
|
|
|
2003-11-03 10:22:00 +00:00
|
|
|
src = fetchurl {
|
2008-10-29 08:57:58 +00:00
|
|
|
url = "mirror://gnu/binutils/${name}.tar.bz2";
|
2009-11-08 00:32:12 +00:00
|
|
|
sha256 = "1c3m789p5rwmmnck5ms4zcnc40axss3gxzivz571al1vmbq0kpz1";
|
2003-11-03 10:22:00 +00:00
|
|
|
};
|
2008-05-29 14:16:35 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Turn on --enable-new-dtags by default to make the linker set
|
|
|
|
# RUNPATH instead of RPATH on binaries. This is important because
|
|
|
|
# RUNPATH can be overriden using LD_LIBRARY_PATH at runtime.
|
|
|
|
./new-dtags.patch
|
|
|
|
];
|
2009-11-08 00:32:12 +00:00
|
|
|
|
2004-03-29 17:23:01 +00:00
|
|
|
inherit noSysDirs;
|
2008-05-29 14:16:35 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
# Clear the default library search path.
|
|
|
|
if test "$noSysDirs" = "1"; then
|
2009-11-08 00:32:12 +00:00
|
|
|
echo 'NATIVE_LIB_DIRS=' >> ld/configure.tgt
|
2008-05-29 14:16:35 +00:00
|
|
|
fi
|
|
|
|
'';
|
2009-11-08 00:32:12 +00:00
|
|
|
|
2006-10-24 20:53:54 +00:00
|
|
|
configureFlags = "--disable-werror"; # needed for dietlibc build
|
2007-04-27 23:30:07 +00:00
|
|
|
|
|
|
|
meta = {
|
2008-10-29 08:57:58 +00:00
|
|
|
description = "GNU Binutils, tools for manipulating binaries (linker, assembler, etc.)";
|
|
|
|
|
2009-02-03 19:36:56 +00:00
|
|
|
longDescription = ''
|
|
|
|
The GNU Binutils are a collection of binary tools. The main
|
|
|
|
ones are `ld' (the GNU linker) and `as' (the GNU assembler).
|
|
|
|
They also include the BFD (Binary File Descriptor) library,
|
|
|
|
`gprof', `nm', `strip', etc.
|
|
|
|
'';
|
|
|
|
|
2008-10-29 08:57:58 +00:00
|
|
|
homepage = http://www.gnu.org/software/binutils/;
|
|
|
|
|
|
|
|
license = "GPLv3+";
|
2007-04-27 23:30:07 +00:00
|
|
|
|
|
|
|
/* Give binutils a lower priority than gcc-wrapper to prevent a
|
|
|
|
collision due to the ld/as wrappers/symlinks in the latter. */
|
|
|
|
priority = "10";
|
|
|
|
};
|
2003-11-03 10:22:00 +00:00
|
|
|
}
|