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.0.6~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a38184edb50b6d0905413782fc615e6883dbaf1c;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 bb953d1a..dbf22eb4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -217,7 +217,7 @@ infcover.o: $(SRCDIR)/test/infcover.c $(SRCDIR)/zlib$(SUFFIX).h zconf$(SUFFIX).h $(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 @@ -286,7 +286,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