Browse Source

[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>
tags/v1.20.1
Michael Brown 14 years ago
parent
commit
c9aff55320
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/Makefile.housekeeping

+ 1
- 1
src/Makefile.housekeeping View File

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

Loading…
Cancel
Save