vboot_reference: fix build with gcc9

This commit is contained in:
Franz Pletz 2019-11-03 01:05:04 +01:00
parent 7b83464d0f
commit cec9a7e93a
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

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