瀏覽代碼

[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 年之前
父節點
當前提交
c9aff55320
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/Makefile.housekeeping

+ 1
- 1
src/Makefile.housekeeping 查看文件

@@ -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…
取消
儲存