mirror of
https://github.com/ipxe/ipxe
synced 2025-12-08 10:20:24 +03:00
[build] Allow building against a zlib in a non-standard location
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
committed by
Michael Brown
parent
c68839d4d6
commit
a5ad78f27e
@@ -46,6 +46,7 @@ ICCFIX := ./util/iccfix
|
|||||||
DOXYGEN := doxygen
|
DOXYGEN := doxygen
|
||||||
BINUTILS_DIR := /usr
|
BINUTILS_DIR := /usr
|
||||||
BFD_DIR := $(BINUTILS_DIR)
|
BFD_DIR := $(BINUTILS_DIR)
|
||||||
|
ZLIB_DIR := /usr
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -873,7 +873,8 @@ CLEANUP += $(ZBIN)
|
|||||||
# The EFI image converter
|
# The EFI image converter
|
||||||
#
|
#
|
||||||
ELF2EFI_CFLAGS := -I$(BINUTILS_DIR)/include -I$(BFD_DIR)/include \
|
ELF2EFI_CFLAGS := -I$(BINUTILS_DIR)/include -I$(BFD_DIR)/include \
|
||||||
-idirafter include -L$(BINUTILS_DIR)/lib -L$(BFD_DIR)/lib \
|
-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 -liberty -lz -Wl,--no-warn-search-mismatch
|
||||||
|
|
||||||
$(ELF2EFI32) : util/elf2efi.c $(MAKEDEPS)
|
$(ELF2EFI32) : util/elf2efi.c $(MAKEDEPS)
|
||||||
|
|||||||
Reference in New Issue
Block a user