tboot: fix build with gcc9

This commit is contained in:
Franz Pletz 2019-11-03 14:11:40 +01:00
parent a0d2774f61
commit 071601843f
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "pic" "stackprotector" ];
NIX_CFLAGS_COMPILE = [ "-Wno-error=address-of-packed-member" ];
configurePhase = ''
for a in lcptools utils tb_polgen; do
substituteInPlace $a/Makefile --replace /usr/sbin /sbin