Skip to content

Commit

Permalink
elfutils: add patch that fixes compilation under gcc8 (#40705)
Browse files Browse the repository at this point in the history
* elfutils: add patch that fixes compilation under gcc8

* elfutils: follow advice from @jtojnar
  • Loading branch information
Synthetica9 authored and xeji committed May 18, 2018
1 parent 456369f commit b12448c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkgs/development/tools/misc/elfutils/default.nix
Expand Up @@ -10,7 +10,16 @@ stdenv.mkDerivation rec {
sha256 = "0rp0r54z44is49c594qy7hr211nhb00aa5y7z74vsybbaxslg10z";
};

patches = ./debug-info-from-env.patch;
patches = [
./debug-info-from-env.patch

/* For gcc8. Fixes -Werror=packed-not-aligned errors.
incorporated in upstream, so can probably be removed at next update */
(fetchurl {
url = http://git.openembedded.org/openembedded-core/plain/meta/recipes-devtools/elfutils/files/0001-Ensure-that-packed-structs-follow-the-gcc-memory-lay.patch?id=49aae1d75ff1c6a9643c30a8cc5776a2ffa83dd3;
sha256 = "11sg2dn3vjvgq2fb9n8pgw1ajvs3gliks7djg1794wxlfg0rvifb";
})
];

hardeningDisable = [ "format" ];

Expand Down

0 comments on commit b12448c

Please sign in to comment.