archiveopteryx: fix build on gcc11 with extra flags

This commit is contained in:
Fabián Heredia Montiel 2022-04-15 09:53:55 -05:00
parent e432bbad78
commit 065409f697

View file

@ -20,11 +20,14 @@ stdenv.mkDerivation rec {
sed -i 's:READMEDIR = $(PREFIX):READMEDIR = '$out'/share/doc/archiveopteryx:' ./Jamsettings
'';
# fix build on gcc7+
# fix build on gcc7+ and gcc11+
NIX_CFLAGS_COMPILE = builtins.toString [
"-std=c++11" # c++17+ has errors
"-Wno-error=builtin-declaration-mismatch"
"-Wno-error=implicit-fallthrough"
"-Wno-error=deprecated-copy"
"-Wno-error=implicit-fallthrough"
"-Wno-error=mismatched-new-delete"
"-Wno-error=nonnull"
];
buildPhase = ''jam "-j$NIX_BUILD_CORES" '';