]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Fix building elf2efi using binutils 2.20
authorMichael Brown <mcb30@ipxe.org>
Thu, 14 Oct 2010 21:59:37 +0000 (22:59 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 14 Oct 2010 22:01:15 +0000 (23:01 +0100)
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>
src/Makefile.housekeeping

index 5220b700a7711c9f4571cc0605c04d1bf6c4a981..c1c388d825bd714e2769e739679ee418cddb3812 100644 (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] $@"