From cec9a7e93a5ab1b662bf38222e6b017ed25ffadd Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Sun, 3 Nov 2019 01:05:04 +0100 Subject: [PATCH] vboot_reference: fix build with gcc9 --- pkgs/tools/system/vboot_reference/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/system/vboot_reference/default.nix b/pkgs/tools/system/vboot_reference/default.nix index 0bf8a7e85dc..ab78551e4fc 100644 --- a/pkgs/tools/system/vboot_reference/default.nix +++ b/pkgs/tools/system/vboot_reference/default.nix @@ -19,6 +19,9 @@ stdenv.mkDerivation rec { patches = [ ./dont_static_link.patch ]; + # fix build with gcc9 + NIX_CFLAGS_COMPILE = [ "-Wno-error" ]; + postPatch = '' substituteInPlace Makefile \ --replace "ar qc" '${stdenv.cc.bintools.targetPrefix}ar qc'