git.iko.soy/typeable/nixpkgs
on master help sign in
libreswan: fix build with gcc7
commit0d980165c97bec84a1dfe75f414d4f32306d0551 authorxeji <xeji@cat3.de> dateThu 8 Mar 2018, 20:44 (9 years ago) parentf468f35
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