git.iko.soy/typeable/nixpkgs
on master help sign in
Merge #36555: libreswan: fix build with gcc7
commitffe2c4be0269e7467f6f69548828848cea52a074 authorVladimír Čunát <vcunat@gmail.com> dateFri 9 Mar 2018, 10:50 (9 years ago) parent20a91ae0d98016
1 file changed+6−1
pkgs/tools/networking/libreswan/default.nix+6−1
pkgs/tools/networking/libreswan/default.nix+6−1
@@ -25,7 +25,12 @@ stdenv.mkDerivation {
2525 };
2626
2727 # These flags were added to compile v3.18. Try to lift them when updating.
28− NIX_CFLAGS_COMPILE = [ "-Wno-error=redundant-decls" "-Wno-error=format-nonliteral" ];
28+ NIX_CFLAGS_COMPILE = [ "-Wno-error=redundant-decls" "-Wno-error=format-nonliteral"
29+ # these flags were added to build with gcc7
30+ "-Wno-error=implicit-fallthrough"
31+ "-Wno-error=format-truncation"
32+ "-Wno-error=pointer-compare"
33+ ];
2934
3035 nativeBuildInputs = [ makeWrapper pkgconfig ];
3136 buildInputs = [ bash iproute iptables systemd coreutils gnused gawk gmp unbound bison flex pam libevent