diff options
author | Michael Brown <mcb30@etherboot.org> | 2009-03-31 09:36:08 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2009-03-31 09:36:08 +0100 |
commit | 3dd7ce1c26cac856039e1151720481c6ab1b43d1 (patch) | |
tree | 762e0dfda2f52e972b4f2331dc854c07633821a7 /src/Makefile.housekeeping | |
parent | 7266aceb39beba3d24de96e47c2c05f3dbb70e77 (diff) | |
download | ipxe-3dd7ce1c26cac856039e1151720481c6ab1b43d1.zip ipxe-3dd7ce1c26cac856039e1151720481c6ab1b43d1.tar.gz ipxe-3dd7ce1c26cac856039e1151720481c6ab1b43d1.tar.bz2 |
[efi] Allow building with non-system libbfd
On Mac OS X, it is necessary to build binutils manually; the system
does not provide bfd.h or the libbfd or libiberty libraries.
Originally-fixed-by: Joshua Oreman <oremanj@rwcr.net>
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r-- | src/Makefile.housekeeping | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index be36b36..4f0a8bb 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -793,16 +793,18 @@ CLEANUP += $(ZBIN) # # The EFI image converter # +ELF2EFI_CFLAGS := -I$(BINUTILS_DIR)/include -I$(BFD_DIR)/include \ + -idirafter include -L$(BINUTILS_DIR)/lib -L$(BFD_DIR)/lib \ + -lbfd -liberty -lz + $(ELF2EFI32) : util/elf2efi.c $(MAKEDEPS) $(QM)$(ECHO) " [HOSTCC] $@" - $(Q)$(HOST_CC) -DMDE_CPU_IA32 -idirafter include -O2 \ - -o $@ $< -lbfd -liberty + $(Q)$(HOST_CC) $(ELF2EFI_CFLAGS) -DMDE_CPU_IA32 -O2 -o $@ $< CLEANUP += $(ELF2EFI32) $(ELF2EFI64) : util/elf2efi.c $(MAKEDEPS) $(QM)$(ECHO) " [HOSTCC] $@" - $(Q)$(HOST_CC) -DMDE_CPU_X64 -idirafter include -O2 \ - -o $@ $< -lbfd -liberty + $(Q)$(HOST_CC) $(ELF2EFI_CFLAGS) -DMDE_CPU_X64 -O2 -o $@ $< CLEANUP += $(ELF2EFI64) $(EFIROM) : util/efirom.c $(MAKEDEPS) |