mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
efitools: fix build
GNU_SOURCE required with latest gcc.
This commit is contained in:
committed by
Austin Horstman
parent
89ef7dc4ef
commit
2f40fbd37a
@@ -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 .
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user