From: Mika Lindqvist Date: Mon, 17 Nov 2025 17:15:03 +0000 (+0200) Subject: Fix build using configure X-Git-Tag: 2.3.1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=469cf6d3c56a6f330046fbcc4960980fe33218e4;p=thirdparty%2Fzlib-ng.git Fix build using configure * "\i" is not valid escape code in BSD sed * Some x86 shared sources were missing -fPIC due to using wrong variable in build rule Fixes #2015. --- diff --git a/arch/x86/Makefile.in b/arch/x86/Makefile.in index 53f532592..4972dd72c 100644 --- a/arch/x86/Makefile.in +++ b/arch/x86/Makefile.in @@ -79,13 +79,13 @@ chorba_sse2.o: $(CC) $(CFLAGS) $(SSE2FLAG) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/chorba_sse2.c chorba_sse2.lo: - $(CC) $(CFLAGS) $(SSE2FLAG) $(NOLTOFLAG) -DPIC $(INCLUDES) -c -o $@ $(SRCDIR)/chorba_sse2.c + $(CC) $(SFLAGS) $(SSE2FLAG) $(NOLTOFLAG) -DPIC $(INCLUDES) -c -o $@ $(SRCDIR)/chorba_sse2.c chorba_sse41.o: $(CC) $(CFLAGS) $(SSE41FLAG) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/chorba_sse41.c chorba_sse41.lo: - $(CC) $(CFLAGS) $(SSE41FLAG) $(NOLTOFLAG) -DPIC $(INCLUDES) -c -o $@ $(SRCDIR)/chorba_sse41.c + $(CC) $(SFLAGS) $(SSE41FLAG) $(NOLTOFLAG) -DPIC $(INCLUDES) -c -o $@ $(SRCDIR)/chorba_sse41.c compare256_avx2.o: $(CC) $(CFLAGS) $(AVX2FLAG) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/compare256_avx2.c diff --git a/configure b/configure index d9f3278fd..c9b12561e 100755 --- a/configure +++ b/configure @@ -2418,7 +2418,7 @@ for file in $SRCDIR/*.c $SRCDIR/test/*.c $SRCDIR/test/fuzz/*.c $SRCDIR/$ARCHDIR/ fi short_name=$(echo $file | sed -e "s#$SRCDIR/##g") - incs=$(grep -h include $file | sed -n 's/# *\include *"\(.*\.h\)".*/\1/p' | sort | uniq) + incs=$(grep -h include $file | sed -n 's/# *include *"\(.*\.h\)".*/\1/p' | sort | uniq) includes=$(for i in $incs; do # Check that the include file exists in the current dir, # otherwise it may be one of the system include header. @@ -2499,7 +2499,7 @@ for file in $SRCDIR/$ARCHDIR/*.c; do continue fi - incs=$(grep -h include $file | sed -n 's/# *\include *"\(.*\.h\)".*/\1/p' | sort | uniq) + incs=$(grep -h include $file | sed -n 's/# *include *"\(.*\.h\)".*/\1/p' | sort | uniq) includes=$(for i in $incs; do # Check that the include file exists in the current dir, # otherwise it may be one of the system include header.