Skip to content

Commit

Permalink
Merge #36555: libreswan: fix build with gcc7
Browse files Browse the repository at this point in the history
(cherry picked from commit ffe2c4b)
  • Loading branch information
vcunat committed Mar 9, 2018
1 parent e6d0584 commit b8ec973
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/tools/networking/libreswan/default.nix
Expand Up @@ -25,7 +25,12 @@ stdenv.mkDerivation {
};

# These flags were added to compile v3.18. Try to lift them when updating.
NIX_CFLAGS_COMPILE = [ "-Wno-error=redundant-decls" "-Wno-error=format-nonliteral" ];
NIX_CFLAGS_COMPILE = [ "-Wno-error=redundant-decls" "-Wno-error=format-nonliteral"
# these flags were added to build with gcc7
"-Wno-error=implicit-fallthrough"
"-Wno-error=format-truncation"
"-Wno-error=pointer-compare"
];

nativeBuildInputs = [ makeWrapper pkgconfig ];
buildInputs = [ bash iproute iptables systemd coreutils gnused gawk gmp unbound bison flex pam libevent
Expand Down

0 comments on commit b8ec973

Please sign in to comment.