]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Fix building with newer binutils
authorMichael Brown <mcb30@ipxe.org>
Thu, 14 Mar 2013 00:20:04 +0000 (00:20 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 14 Mar 2013 00:20:04 +0000 (00:20 +0000)
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>
src/util/elf2efi.c

index b28c7ef33e05f46f2aacaeb9d5cb5923512f0ecd..45d539574e3be734958f7af38ab1c6334c692e7f 100644 (file)
@@ -18,6 +18,8 @@
  */
 
 #define _GNU_SOURCE
+#define PACKAGE "elf2efi"
+#define PACKAGE_VERSION "1"
 #include <stdint.h>
 #include <stddef.h>
 #include <stdlib.h>