Merge pull request #282603 from superherointj/anbox-mark-broken
anbox: fix build
This commit is contained in:
commit
9db55bdd84
1 changed files with 7 additions and 4 deletions
|
@ -80,10 +80,13 @@ stdenv.mkDerivation rec {
|
|||
systemd
|
||||
];
|
||||
|
||||
# Flag needed by GCC 12 but unrecognized by GCC 9 (aarch64-linux default now)
|
||||
env.NIX_CFLAGS_COMPILE = toString (lib.optionals (with stdenv; cc.isGNU && lib.versionAtLeast cc.version "12") [
|
||||
"-Wno-error=mismatched-new-delete"
|
||||
]);
|
||||
env.CXXFLAGS = toString [ "-include cstdint" ];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU (toString [
|
||||
"-Wno-error=redundant-move"
|
||||
# Flag needed by GCC 12 but unrecognized by GCC 9 (aarch64-linux default now)
|
||||
(lib.optionalString (lib.versionAtLeast stdenv.cc.version "12") "-Wno-error=mismatched-new-delete")
|
||||
]);
|
||||
|
||||
prePatch = ''
|
||||
patchShebangs scripts
|
||||
|
|
Loading…
Reference in a new issue