archiveopteryx: fix build with gcc9

This commit is contained in:
Franz Pletz 2019-11-02 18:49:25 +01:00
parent 74554ab3b2
commit f60914ac2c
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -20,10 +20,11 @@ stdenv.mkDerivation rec {
sed -i 's:READMEDIR = $(PREFIX):READMEDIR = '$out'/share/doc/archiveopteryx:' ./Jamsettings sed -i 's:READMEDIR = $(PREFIX):READMEDIR = '$out'/share/doc/archiveopteryx:' ./Jamsettings
''; '';
# fix build on gcc7 # fix build on gcc7+
NIX_CFLAGS_COMPILE = [ NIX_CFLAGS_COMPILE = [
"-Wno-error=builtin-declaration-mismatch" "-Wno-error=builtin-declaration-mismatch"
"-Wno-error=implicit-fallthrough" "-Wno-error=implicit-fallthrough"
"-Wno-error=deprecated-copy"
]; ];
buildPhase = ''jam "-j$NIX_BUILD_CORES" ''; buildPhase = ''jam "-j$NIX_BUILD_CORES" '';