]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Link crc32_test and infcover with $(CFLAGS)
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 11 Oct 2021 10:36:28 +0000 (12:36 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 24 Dec 2021 11:52:14 +0000 (12:52 +0100)
This fixes link failures when using CFLAGS=-m31 on IBM Z. All the
other tests are already linked this way.

Makefile.in

index bb953d1a5c951013b4fdb9a20b19b7dd244527f3..dbf22eb4212ce3a57d56f0a02c88501c64e85b96 100644 (file)
@@ -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