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
This commit is contained in:
parent
18ee7a21b1
commit
c705239a5d
|
@ -19,8 +19,9 @@ stdenv.mkDerivation rec {
|
||||||
"-O2"
|
"-O2"
|
||||||
"-Wno-error=array-bounds"
|
"-Wno-error=array-bounds"
|
||||||
"-Wno-error=stringop-overflow"
|
"-Wno-error=stringop-overflow"
|
||||||
"-Wno-error=stringop-overread"
|
|
||||||
"-Wno-error=stringop-truncation"
|
"-Wno-error=stringop-truncation"
|
||||||
|
] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [
|
||||||
|
"-Wno-error=stringop-overread"
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase =
|
buildPhase =
|
||||||
|
|
Loading…
Reference in a new issue