Welcome! Log In Create A New Profile

Advanced

[PATCH] Configure: call "make distclean" for zlib only if Makefile exists

Piotr Sikora
April 23, 2014 05:34PM
# HG changeset patch
# User Piotr Sikora <piotr@cloudflare.com>
# Date 1398288630 25200
# Wed Apr 23 14:30:30 2014 -0700
# Node ID c4c006176ad05e498bdbddb8db41ce33733afedc
# Parent cac82b9b3499922de352627ccd7f10f6dac66586
Configure: call "make distclean" for zlib only if Makefile exists.

This change allows to build nginx against git checkout of zlib.

Signed-off-by: Piotr Sikora <piotr@cloudflare.com>

diff -r cac82b9b3499 -r c4c006176ad0 auto/lib/zlib/make
--- a/auto/lib/zlib/make Wed Apr 23 20:31:31 2014 +0400
+++ b/auto/lib/zlib/make Wed Apr 23 14:30:30 2014 -0700
@@ -52,7 +52,7 @@ END

$ZLIB/libz.a: $NGX_MAKEFILE
cd $ZLIB \\
- && \$(MAKE) distclean \\
+ && if [ -f Makefile ]; then \$(MAKE) distclean; fi \\
&& \$(MAKE) -f win32/Makefile.gcc \\
CFLAGS="$ZLIB_OPT" CC="\$(CC)" \\
libz.a
@@ -75,7 +75,7 @@ END

$ZLIB/libz.a: $NGX_MAKEFILE
cd $ZLIB \\
- && \$(MAKE) distclean \\
+ && if [ -f Makefile ]; then \$(MAKE) distclean; fi \\
&& cp contrib/asm586/match.S . \\
&& CFLAGS="$ZLIB_OPT -DASMV" CC="\$(CC)" \\
./configure \\
@@ -92,7 +92,7 @@ END

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

$ZLIB/libz.a: $NGX_MAKEFILE
cd $ZLIB \\
- && \$(MAKE) distclean \\
+ && if [ -f Makefile ]; then \$(MAKE) distclean; fi \\
&& CFLAGS="$ZLIB_OPT" CC="\$(CC)" \\
./configure \\
&& \$(MAKE) libz.a

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Configure: call "make distclean" for zlib only if Makefile exists

Piotr Sikora 987 April 23, 2014 05:34PM

Re: [PATCH] Configure: call "make distclean" for zlib only if Makefile exists

Piotr Sikora 386 April 24, 2014 06:18AM

Re: [PATCH] Configure: call "make distclean" for zlib only if Makefile exists

fanboy 592 April 24, 2014 10:48PM

Re: [PATCH] Configure: call "make distclean" for zlib only if Makefile exists

Yichun Zhang (agentzh) 389 April 25, 2014 12:10AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 265
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