]> 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>
Wed, 13 Oct 2021 13:39:57 +0000 (15:39 +0200)
This fixes link failures when using CFLAGS=-m31 on IBM Z. All the
other tests are already linked this way.

Makefile.in

index 8e855e456dcbef6196d0557f51aa369bcfc0481a..928805fc58426b3e92e54f5fd9099b3e62d29259 100644 (file)
@@ -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