archiveopteryx: fix build on aarch64 by conditioning `-Wno-error` flag

main
Fabián Heredia Montiel 2 years ago
parent e91da70b45
commit 2151e9af9c
  1. 5
      pkgs/servers/mail/archiveopteryx/default.nix

@ -21,13 +21,14 @@ stdenv.mkDerivation rec {
'';
# fix build on gcc7+ and gcc11+
NIX_CFLAGS_COMPILE = builtins.toString [
NIX_CFLAGS_COMPILE = [
"-std=c++11" # c++17+ has errors
"-Wno-error=builtin-declaration-mismatch"
"-Wno-error=deprecated-copy"
"-Wno-error=implicit-fallthrough"
"-Wno-error=mismatched-new-delete"
"-Wno-error=nonnull"
] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [
"-Wno-error=mismatched-new-delete"
];
buildPhase = ''jam "-j$NIX_BUILD_CORES" '';

Loading…
Cancel
Save