vsftpd: fix build with gcc9

We still use that version on aarch64.
This commit is contained in:
Robert Schütz 2021-05-12 14:00:05 +02:00
parent 8a0c5da648
commit 8926311238

View file

@ -24,7 +24,11 @@ stdenv.mkDerivation rec {
'';
NIX_LDFLAGS = "-lcrypt -lssl -lcrypto -lpam -lcap";
NIX_CFLAGS_COMPILE = "-Wno-error=enum-conversion";
# On gcc9, this would produce
# error: '-Werror=enum-conversion': no option -Wenum-conversion
NIX_CFLAGS_COMPILE = lib.optionalString (lib.versionAtLeast stdenv.cc.version "10")
"-Wno-error=enum-conversion";
enableParallelBuilding = true;