vsftpd: fix build with gcc9
We still use that version on aarch64.
This commit is contained in:
parent
8a0c5da648
commit
8926311238
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue