From c705239a5de14642f50f7755dd91b38e0ffcf3cd Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 17 Apr 2022 02:57:03 +0200 Subject: [PATCH] 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 --- pkgs/tools/networking/cjdns/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/cjdns/default.nix b/pkgs/tools/networking/cjdns/default.nix index 5fa39f6281b..e8dc5e370be 100644 --- a/pkgs/tools/networking/cjdns/default.nix +++ b/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 =