valgrind: fix cross-build

This commit is contained in:
Jörg Thalheim 2018-12-12 00:36:37 +00:00
parent e4556c275c
commit c6d83f297d
No known key found for this signature in database
GPG key ID: CA4106B8D7CC79FA

View file

@ -11,15 +11,15 @@ stdenv.mkDerivation rec {
# autoreconfHook is needed to pick up patching of Makefile.am
# Remove when the patch no longer applies.
patches = [ ./coregrind-makefile-race.patch ];
nativeBuildInputs = [ autoreconfHook ];
# Perl is needed for `cg_annotate'.
nativeBuildInputs = [ autoreconfHook perl ];
outputs = [ "out" "dev" "man" "doc" ];
hardeningDisable = [ "stackprotector" ];
# Perl is needed for `cg_annotate'.
# GDB is needed to provide a sane default for `--db-command'.
buildInputs = [ perl gdb ] ++ stdenv.lib.optionals (stdenv.isDarwin) [ bootstrap_cmds xnu ];
buildInputs = [ gdb ] ++ stdenv.lib.optionals (stdenv.isDarwin) [ bootstrap_cmds xnu ];
enableParallelBuilding = true;
separateDebugInfo = stdenv.isLinux;