cjdns: don't set -Wno-error=stringop-overread with gcc<11

The build would error out on aarch64-linux with

> cc1: error: '-Werror=stringop-overread': no option -Wstringop-overread
main
Martin Weinelt 2 years ago
parent 18ee7a21b1
commit c705239a5d
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
  1. 3
      pkgs/tools/networking/cjdns/default.nix

@ -19,8 +19,9 @@ stdenv.mkDerivation rec {
"-O2"
"-Wno-error=array-bounds"
"-Wno-error=stringop-overflow"
"-Wno-error=stringop-overread"
"-Wno-error=stringop-truncation"
] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [
"-Wno-error=stringop-overread"
];
buildPhase =

Loading…
Cancel
Save