3
0
Fork 0
forked from mirrors/nixpkgs

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
This commit is contained in:
Peter Simons 2013-04-06 00:45:25 +02:00
parent 938486848e
commit c976480a01

View file

@ -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 = {