From: Ilya Leoshkevich Date: Mon, 11 Oct 2021 10:36:28 +0000 (+0200) Subject: Link crc32_test and infcover with $(CFLAGS) X-Git-Tag: 2.1.0-beta1~504 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ffb6aef94443a135ad3b0da547dcc96d3bb4421;p=thirdparty%2Fzlib-ng.git Link crc32_test and infcover with $(CFLAGS) This fixes link failures when using CFLAGS=-m31 on IBM Z. All the other tests are already linked this way. --- diff --git a/Makefile.in b/Makefile.in index 8e855e456..928805fc5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -231,7 +231,7 @@ infcover.o: $(SRCDIR)/test/infcover.c zlib$(SUFFIX).h zconf$(SUFFIX).h zlib_name $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/test/infcover.c infcover$(EXE): infcover.o $(STATICLIB) - $(CC) $(LDFLAGS) -o $@ infcover.o $(STATICLIB) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ infcover.o $(STATICLIB) ifneq ($(STRIP),) $(STRIP) $@ endif @@ -315,7 +315,7 @@ ifneq ($(STRIP),) endif crc32_test$(EXE): crc32_test.o $(STATICLIB) - $(CC) $(LDFLAGS) -o $@ crc32_test.o $(TEST_LIBS) $(LDSHAREDLIBC) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ crc32_test.o $(TEST_LIBS) $(LDSHAREDLIBC) ifneq ($(STRIP),) $(STRIP) $@ endif