Welcome! Log In Create A New Profile

Advanced

Re: nginx build against zlib-1.2.4 fails

Maxim Dounin
March 22, 2010 11:20AM
Hello!

On Sun, Mar 21, 2010 at 09:02:03PM +0530, Vinay Y S wrote:

> zlib-1.2.4 has been released recently and it's default Makefile has changed.
> It now only contains distclean target and no target named 'clean' before
> ./configure is run. Hence, nginx source build against zlib-1.2.4 fails.
> Please fix this in the next release.

Patch.

Maxim Dounin
# HG changeset patch
# User Maxim Dounin <mdounin@mdounin.ru>
# Date 1269270496 -10800
# Node ID 6a72c21f59aad403db620ac364a31ef71c44278a
# Parent dd7104f21940d9026698b6db4a52622f49745caa
Fix --with-zlib used with zlib 1.2.4.

New zlib 1.2.4 has no Makefile out of the box. Only stub present with the
target "distclean". Use it instead of "clean" as it does what we need and
compatible with old versions.

Test with all zlib versions currently available on official site: 1.1.3,
1.1.4, 1.2.1, 1.2.2, 1.2.3, 1.2.4.

diff --git a/auto/lib/zlib/make b/auto/lib/zlib/make
--- a/auto/lib/zlib/make
+++ b/auto/lib/zlib/make
@@ -53,7 +53,7 @@ END

$ZLIB/libz.a: $NGX_MAKEFILE
cd $ZLIB \\
- && \$(MAKE) clean \\
+ && \$(MAKE) distclean \\
&& cp contrib/asm586/match.S . \\
&& CFLAGS="$ZLIB_OPT -DASMV" CC="\$(CC)" \\
./configure \\
@@ -70,7 +70,7 @@ END

$ZLIB/libz.a: $NGX_MAKEFILE
cd $ZLIB \\
- && \$(MAKE) clean \\
+ && \$(MAKE) distclean \\
&& cp contrib/asm686/match.S . \\
&& CFLAGS="$ZLIB_OPT -DASMV" CC="\$(CC)" \\
./configure \\
@@ -103,7 +103,7 @@ if [ $done = NO ]; then

$ZLIB/libz.a: $NGX_MAKEFILE
cd $ZLIB \\
- && \$(MAKE) clean \\
+ && \$(MAKE) distclean \\
&& CFLAGS="$ZLIB_OPT" CC="\$(CC)" \\
./configure \\
&& \$(MAKE) libz.a
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx build against zlib-1.2.4 fails

Vinay Y S March 21, 2010 11:36AM

Re: nginx build against zlib-1.2.4 fails

Maxim Dounin March 22, 2010 11:20AM

Re: nginx build against zlib-1.2.4 fails

Vinay Y S March 24, 2010 02:50PM

Re: nginx build against zlib-1.2.4 fails

Maxim Dounin March 24, 2010 03:10PM

Re: nginx build against zlib-1.2.4 fails

Vinay Y S March 24, 2010 03:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 162
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready