summary refs log tree commit diff
path: root/pkgs/development/tools/misc/elfutils/default.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2013-04-06 00:45:25 +0200
committerPeter Simons <simons@cryp.to>2013-04-07 23:33:20 +0200
commitc976480a01f96652c4e33576de45a0ad31be7e0d (patch)
treee3291b8a5b5c31b973279b12f164624a0e43de16 /pkgs/development/tools/misc/elfutils/default.nix
parent938486848e416293666f322f2577cda58a5efbad (diff)
downloadnixpkgs-c976480a01f96652c4e33576de45a0ad31be7e0d.tar
nixpkgs-c976480a01f96652c4e33576de45a0ad31be7e0d.tar.gz
nixpkgs-c976480a01f96652c4e33576de45a0ad31be7e0d.tar.bz2
nixpkgs-c976480a01f96652c4e33576de45a0ad31be7e0d.tar.lz
nixpkgs-c976480a01f96652c4e33576de45a0ad31be7e0d.tar.xz
nixpkgs-c976480a01f96652c4e33576de45a0ad31be7e0d.tar.zst
nixpkgs-c976480a01f96652c4e33576de45a0ad31be7e0d.zip
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
Diffstat (limited to 'pkgs/development/tools/misc/elfutils/default.nix')
-rw-r--r--pkgs/development/tools/misc/elfutils/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/tools/misc/elfutils/default.nix b/pkgs/development/tools/misc/elfutils/default.nix
index 5a1a19068a7..526a66e0280 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 = {