Parcourir la 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 il y a 14 ans
Parent
révision
c9aff55320
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      src/Makefile.housekeeping

+ 1
- 1
src/Makefile.housekeeping Voir le fichier

@@ -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] $@"

Chargement…
Annuler
Enregistrer