Bladeren bron

[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 jaren geleden
bovenliggende
commit
e63f6c9241
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 2
    0
      src/util/elf2efi.c

+ 2
- 0
src/util/elf2efi.c Bestand weergeven

@@ -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>

Laden…
Annuleren
Opslaan