From c9aff55320816277391e4379589d284c597c9c26 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 14 Oct 2010 22:59:37 +0100 Subject: [PATCH] [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 Signed-off-by: Michael Brown --- src/Makefile.housekeeping | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index 5220b700..c1c388d8 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -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] $@"