Merge pull request #282603 from superherointj/anbox-mark-broken

anbox: fix build
This commit is contained in:
Weijia Wang 2024-02-08 22:55:52 +01:00 committed by GitHub
commit 9db55bdd84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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