From c06dfecb8a0c996dce87148b9086f0fe79734f32 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sun, 21 Jan 2024 09:24:10 -0800 Subject: [PATCH] Use Makefile compiler for minizip-test target. --- Makefile.in | 2 +- contrib/minizip/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index b584073..acda3b1 100644 --- a/Makefile.in +++ b/Makefile.in @@ -360,7 +360,7 @@ zconf: $(SRCDIR)zconf.h.in cp -p $(SRCDIR)zconf.h.in zconf.h minizip-test: static - cd contrib/minizip && { CFLAGS="$(CFLAGS)" $(MAKE) test ; cd ../.. ; } + cd contrib/minizip && { CC="$(CC)" CFLAGS="$(CFLAGS)" $(MAKE) test ; cd ../.. ; } minizip-clean: cd contrib/minizip && { $(MAKE) clean ; cd ../.. ; } diff --git a/contrib/minizip/Makefile b/contrib/minizip/Makefile index aac76e0..3d927ec 100644 --- a/contrib/minizip/Makefile +++ b/contrib/minizip/Makefile @@ -1,4 +1,4 @@ -CC=cc +CC?=cc CFLAGS := $(CFLAGS) -O -I../.. UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a