Browse Source

[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 years ago
parent
commit
e63f6c9241
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/util/elf2efi.c

+ 2
- 0
src/util/elf2efi.c View File

@@ -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…
Cancel
Save