archiveopteryx: fix build on gcc11 with extra flags
This commit is contained in:
parent
e432bbad78
commit
065409f697
|
@ -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" '';
|
||||
|
|
Loading…
Reference in a new issue