Merge pull request #170201 from vcunat/p/nginx-gcc11

nginx: fixup build with other than gcc11
main
Rick van Schijndel 2 years ago committed by GitHub
commit b9c8e5b757
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      pkgs/servers/http/nginx/generic.nix

@ -107,6 +107,7 @@ stdenv.mkDerivation {
NIX_CFLAGS_COMPILE = toString ([
"-I${libxml2.dev}/include/libxml2"
"-Wno-error=implicit-fallthrough"
] ++ optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [
# fix build vts module on gcc11
"-Wno-error=stringop-overread"
] ++ optional stdenv.isDarwin "-Wno-error=deprecated-declarations");

Loading…
Cancel
Save