david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[build] Fix building elf2efi using binutils 2.20

When using binutils 2.20, it seems to be necessary to add -ldl to link
against -lbfd.

Reported-by: Duane Voth <duanev@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2010-10-14 22:59:37 +01:00
parent c0e3a774b2
commit c9aff55320
1 changed files with 1 additions and 1 deletions

View File

@ -918,7 +918,7 @@ CLEANUP += $(ZBIN)
ELF2EFI_CFLAGS := -I$(BINUTILS_DIR)/include -I$(BFD_DIR)/include \
-I$(ZLIB_DIR)/include -idirafter include \
-L$(BINUTILS_DIR)/lib -L$(BFD_DIR)/lib -L$(ZLIB_DIR)/lib \
-lbfd -liberty -lz -Wl,--no-warn-search-mismatch
-lbfd -ldl -liberty -lz -Wl,--no-warn-search-mismatch
$(ELF2EFI32) : util/elf2efi.c $(MAKEDEPS)
$(QM)$(ECHO) " [HOSTCC] $@"