Browse Source

[build] Remove unnecessary dependency on zlib

The dependency on zlib seems to have been introduced in commit 3dd7ce1
("[efi] Allow building with non-system libbfd") as an indirect
requirement of either libbfd or libiberty when building on Mac OS X.
Since we no longer use either of these libraries, remove the
unnecessary link against zlib.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 years ago
parent
commit
9f91df422b
2 changed files with 2 additions and 7 deletions
  1. 0
    1
      src/Makefile
  2. 2
    6
      src/Makefile.housekeeping

+ 0
- 1
src/Makefile View File

@@ -53,7 +53,6 @@ EINFO		:= ./util/einfo
53 53
 GENKEYMAP	:= ./util/genkeymap.pl
54 54
 DOXYGEN		:= doxygen
55 55
 LCAB		:= lcab
56
-ZLIB_DIR	:= /usr
57 56
 
58 57
 ###############################################################################
59 58
 #

+ 2
- 6
src/Makefile.housekeeping View File

@@ -1303,19 +1303,15 @@ CLEANUP += $(ZBIN)
1303 1303
 #
1304 1304
 # The EFI image converter
1305 1305
 #
1306
-ELF2EFI_CFLAGS	:= -I$(ZLIB_DIR)/include -idirafter include
1307
-ELF2EFI_LDFLAGS	:= -L$(ZLIB_DIR)/lib -lz -Wl,--no-warn-search-mismatch
1308 1306
 
1309 1307
 $(ELF2EFI32) : util/elf2efi.c $(MAKEDEPS)
1310 1308
 	$(QM)$(ECHO) "  [HOSTCC] $@"
1311
-	$(Q)$(HOST_CC) $(HOST_CFLAGS) $(ELF2EFI_CFLAGS) -DEFI_TARGET32 $< \
1312
-		$(ELF2EFI_LDFLAGS) -o $@
1309
+	$(Q)$(HOST_CC) $(HOST_CFLAGS) -idirafter include -DEFI_TARGET32 $< -o $@
1313 1310
 CLEANUP += $(ELF2EFI32)
1314 1311
 
1315 1312
 $(ELF2EFI64) : util/elf2efi.c $(MAKEDEPS)
1316 1313
 	$(QM)$(ECHO) "  [HOSTCC] $@"
1317
-	$(Q)$(HOST_CC) $(HOST_CFLAGS) $(ELF2EFI_CFLAGS) -DEFI_TARGET64 $< \
1318
-		$(ELF2EFI_LDFLAGS) -o $@
1314
+	$(Q)$(HOST_CC) $(HOST_CFLAGS) -idirafter include -DEFI_TARGET64 $< -o $@
1319 1315
 CLEANUP += $(ELF2EFI64)
1320 1316
 
1321 1317
 $(EFIROM) : util/efirom.c $(MAKEDEPS)

Loading…
Cancel
Save