瀏覽代碼

[efi] Fix building with newer binutils

Newer versions of bfd.h require definitions for the PACKAGE and
PACKAGE_VERSION macros used by autotools.  Work around this by
manually defining these macros before including bfd.h.

Originally-fixed-by: Brandon Penglase <bpenglase-ipxe@spaceservices.net>
Tested-by: Brandon Penglase <bpenglase-ipxe@spaceservices.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 年之前
父節點
當前提交
e63f6c9241
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      src/util/elf2efi.c

+ 2
- 0
src/util/elf2efi.c 查看文件

@@ -18,6 +18,8 @@
18 18
  */
19 19
 
20 20
 #define _GNU_SOURCE
21
+#define PACKAGE "elf2efi"
22
+#define PACKAGE_VERSION "1"
21 23
 #include <stdint.h>
22 24
 #include <stddef.h>
23 25
 #include <stdlib.h>

Loading…
取消
儲存