mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #122709 from dotlambda/vsftpd-fix-aarch64
vsftpd: fix build with gcc9
This commit is contained in:
commit
52b595794f
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