From c976480a01f96652c4e33576de45a0ad31be7e0d Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 6 Apr 2013 00:45:25 +0200 Subject: elfutils: disable -Werror to fix the build nm.c: In function 'show_symbols_sysv': nm.c:773:27: error: argument to 'sizeof' in 'snprintf' call is the same expression as the destination; did you mean to provide an explicit length? [-Werror=sizeof-pointer-memaccess] snprintf (name, sizeof name, "[invalid sh_name %#" PRIx32 "]", ^ cc1: all warnings being treated as errors --- pkgs/development/tools/misc/elfutils/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pkgs/development/tools/misc/elfutils/default.nix') diff --git a/pkgs/development/tools/misc/elfutils/default.nix b/pkgs/development/tools/misc/elfutils/default.nix index 5a1a19068a7e..526a66e02804 100644 --- a/pkgs/development/tools/misc/elfutils/default.nix +++ b/pkgs/development/tools/misc/elfutils/default.nix @@ -24,9 +24,11 @@ stdenv.mkDerivation rec { nativeBuildInputs = [m4 bison flex gettext bzip2]; buildInputs = [zlib bzip2]; + configureFlags = "--disable-werror"; + crossAttrs = { - /* Having bzip2 will harm, because anything using elfutils + /* Having bzip2 will harm, because anything using elfutils as buildInput cross-building, will not be able to run 'bzip2' */ propagatedBuildInputs = [ zlib.crossDrv ]; @@ -64,7 +66,7 @@ stdenv.mkDerivation rec { cp version.h $out/include ''; }; - + dontAddDisableDepTrack = true; meta = { -- cgit 1.4.1