efitools: fix build

GNU_SOURCE required with latest gcc.
This commit is contained in:
Reno Dakota
2024-12-30 19:55:30 -06:00
committed by Austin Horstman
parent 89ef7dc4ef
commit 2f40fbd37a

View File

@@ -39,6 +39,7 @@ stdenv.mkDerivation rec {
sed -i -e 's#/usr/include/efi#${gnu-efi}/include/efi/#g' Make.rules
sed -i -e 's#/usr/lib64/gnuefi#${gnu-efi}/lib/#g' Make.rules
sed -i -e 's#$(DESTDIR)/usr#$(out)#g' Make.rules
sed -i '$asign-efi-sig-list.o flash-var.o: CFLAGS += -D_GNU_SOURCE' Makefile
substituteInPlace lib/console.c --replace "EFI_WARN_UNKOWN_GLYPH" "EFI_WARN_UNKNOWN_GLYPH"
patchShebangs .
'';