2004-03-11 18:26:14 +01:00
|
|
|
{stdenv, fetchurl, noSysDirs}:
|
2004-03-09 18:16:02 +01:00
|
|
|
|
2008-10-29 09:57:58 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "binutils-2.19";
|
2008-05-29 16:16:35 +02:00
|
|
|
|
2003-11-03 11:22:00 +01:00
|
|
|
src = fetchurl {
|
2008-10-29 09:57:58 +01:00
|
|
|
url = "mirror://gnu/binutils/${name}.tar.bz2";
|
|
|
|
sha256 = "12jjvb9p9j59a46glxy15ff5h4i2s3izpx05gf8jmxibzh7s2bmx";
|
2003-11-03 11:22:00 +01:00
|
|
|
};
|
2008-05-29 16:16:35 +02: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
|
|
|
|
];
|
|
|
|
|
2004-03-29 19:23:01 +02:00
|
|
|
inherit noSysDirs;
|
2008-05-29 16:16:35 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
# Clear the default library search path.
|
|
|
|
if test "$noSysDirs" = "1"; then
|
|
|
|
echo 'NATIVE_LIB_DIRS=' >> ld/configure.tgt
|
|
|
|
fi
|
|
|
|
'';
|
|
|
|
|
2006-10-24 22:53:54 +02:00
|
|
|
configureFlags = "--disable-werror"; # needed for dietlibc build
|
2007-04-28 01:30:07 +02:00
|
|
|
|
|
|
|
meta = {
|
2008-10-29 09:57:58 +01:00
|
|
|
description = "GNU Binutils, tools for manipulating binaries (linker, assembler, etc.)";
|
|
|
|
|
|
|
|
homepage = http://www.gnu.org/software/binutils/;
|
|
|
|
|
|
|
|
license = "GPLv3+";
|
2007-04-28 01:30:07 +02: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 11:22:00 +01:00
|
|
|
}
|