From 76e4258ad368336b9d32a6bfcef128f1a61f2f68 Mon Sep 17 00:00:00 2001 From: eukara Date: Fri, 8 Mar 2024 11:44:06 -0800 Subject: [PATCH] Use zlib fossils directory for permalinked releases of zlib. (#244) --- engine/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/Makefile b/engine/Makefile index 182e27abd..471810c90 100644 --- a/engine/Makefile +++ b/engine/Makefile @@ -2296,11 +2296,11 @@ libs-$(ARCH)/libjpeg.a: ifeq ($(FTE_TARGET),web) libs-$(ARCH)/libz.a libs-$(ARCH)/libz.pc: - test -f zlib-$(ZLIBVER).tar.gz || wget http://zlib.net/zlib-$(ZLIBVER).tar.gz + test -f zlib-$(ZLIBVER).tar.gz || wget http://zlib.net/fossils/zlib-$(ZLIBVER).tar.gz -test -f libs-$(ARCH)/libz.a || (mkdir -p libs-$(ARCH) && cd libs-$(ARCH) && tar -xvzf ../zlib-$(ZLIBVER).tar.gz && cd zlib-$(ZLIBVER) && emconfigure ./configure --static && emmake $(MAKE) libz.a CC="$(CC) $(W32_CFLAGS) -fPIC" && cp libz.a ../ && $(TOOLOVERRIDES) $(AR) -s ../libz.a && cp zlib.h zconf.h zutil.h zlib.pc ../ ) else libs-$(ARCH)/libz.a libs-$(ARCH)/libz.pc: - test -f zlib-$(ZLIBVER).tar.gz || wget http://zlib.net/zlib-$(ZLIBVER).tar.gz + test -f zlib-$(ZLIBVER).tar.gz || wget http://zlib.net/fossils/zlib-$(ZLIBVER).tar.gz -test -f libs-$(ARCH)/libz.a || (mkdir -p libs-$(ARCH) && cd libs-$(ARCH) && tar -xvzf ../zlib-$(ZLIBVER).tar.gz && cd zlib-$(ZLIBVER) && $(TOOLOVERRIDES) ./configure --static && $(TOOLOVERRIDES) $(MAKE) libz.a CC="$(CC) $(W32_CFLAGS) -fPIC" && cp libz.a ../ && $(TOOLOVERRIDES) $(AR) -s ../libz.a && cp zlib.h zconf.h zutil.h zlib.pc ../ ) endif libs-$(ARCH)/libz9.a: libs-$(ARCH)/libz.a