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

anbox: fix build

authored by Weijia Wang and committed by GitHub 9db55bdd 89806cb1

+7 -4
+7 -4
pkgs/os-specific/linux/anbox/default.nix
··· 80 80 systemd 81 81 ]; 82 82 83 - # Flag needed by GCC 12 but unrecognized by GCC 9 (aarch64-linux default now) 84 - env.NIX_CFLAGS_COMPILE = toString (lib.optionals (with stdenv; cc.isGNU && lib.versionAtLeast cc.version "12") [ 85 - "-Wno-error=mismatched-new-delete" 86 - ]); 83 + env.CXXFLAGS = toString [ "-include cstdint" ]; 84 + 85 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU (toString [ 86 + "-Wno-error=redundant-move" 87 + # Flag needed by GCC 12 but unrecognized by GCC 9 (aarch64-linux default now) 88 + (lib.optionalString (lib.versionAtLeast stdenv.cc.version "12") "-Wno-error=mismatched-new-delete") 89 + ]); 87 90 88 91 prePatch = '' 89 92 patchShebangs scripts