* Make Valgrind compile with Glibc 2.11.

svn path=/nixpkgs/branches/stdenv-updates/; revision=19554
This commit is contained in:
Eelco Dolstra
2010-01-19 22:27:07 +00:00
parent f93620419f
commit 1d6d92c9a1
3 changed files with 61 additions and 3 deletions
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, perl, gdb }:
{ stdenv, fetchurl, perl, gdb, autoconf, automake }:
stdenv.mkDerivation rec {
name = "valgrind-3.5.0";
@@ -8,9 +8,14 @@ stdenv.mkDerivation rec {
sha256 = "105s4y6h5rsfvml1dfhsjvqgsxvnclbnxbpgk8b4ghpbpcr52fkl";
};
# Make Valgrind compile with Glibc 2.11.
patches = [ ./glibc-2.11.patch ];
patchFlags = "-p0";
preConfigure = "autoreconf";
# Perl is needed for `cg_annotate'.
# GDB is needed to provide a sane default for `--db-command'.
buildInputs = [ perl ] ++ stdenv.lib.optional (!stdenv.isDarwin) gdb;
buildInputs = [ perl autoconf automake ] ++ stdenv.lib.optional (!stdenv.isDarwin) gdb;
configureFlags =
if stdenv.system == "x86_64-linux" then ["--enable-only64bit"] else [];