diff options
author | xeji <xeji@cat3.de> | 2018-03-08 20:44:43 +0100 |
---|---|---|
committer | xeji <xeji@cat3.de> | 2018-03-08 20:44:43 +0100 |
commit | 0d980165c97bec84a1dfe75f414d4f32306d0551 (patch) | |
tree | d582fdb696f1550603062709be40c0d7ad51dee1 /pkgs/tools/networking/libreswan | |
parent | f468f356b0124eb725cb2f8343cd545c336a14a9 (diff) | |
download | nixpkgs-0d980165c97bec84a1dfe75f414d4f32306d0551.tar nixpkgs-0d980165c97bec84a1dfe75f414d4f32306d0551.tar.gz nixpkgs-0d980165c97bec84a1dfe75f414d4f32306d0551.tar.bz2 nixpkgs-0d980165c97bec84a1dfe75f414d4f32306d0551.tar.lz nixpkgs-0d980165c97bec84a1dfe75f414d4f32306d0551.tar.xz nixpkgs-0d980165c97bec84a1dfe75f414d4f32306d0551.tar.zst nixpkgs-0d980165c97bec84a1dfe75f414d4f32306d0551.zip |
libreswan: fix build with gcc7
Diffstat (limited to 'pkgs/tools/networking/libreswan')
-rw-r--r-- | pkgs/tools/networking/libreswan/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/tools/networking/libreswan/default.nix b/pkgs/tools/networking/libreswan/default.nix index b2024f55c4e..fd2461f5171 100644 --- a/pkgs/tools/networking/libreswan/default.nix +++ b/pkgs/tools/networking/libreswan/default.nix @@ -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 |