[PATCH] Configure: call "make clean" for OpenSSL only if Makefile exists.

Piotr Sikora piotr at cloudflare.com
Tue Nov 5 01:07:03 UTC 2013


# HG changeset patch
# User Piotr Sikora <piotr at cloudflare.com>
# Date 1383613225 28800
#      Mon Nov 04 17:00:25 2013 -0800
# Node ID 6d03c58d4b1c3fdd87f42a9ceaf8daa68d11365a
# Parent  dea321e5c0216efccbb23e84bbce7cf3e28f130c
Configure: call "make clean" for OpenSSL only if Makefile exists.

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

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

diff -r dea321e5c021 -r 6d03c58d4b1c auto/lib/openssl/make
--- a/auto/lib/openssl/make Thu Oct 31 18:23:49 2013 +0400
+++ b/auto/lib/openssl/make Mon Nov 04 17:00:25 2013 -0800
@@ -55,7 +55,7 @@ END

 $OPENSSL/.openssl/include/openssl/ssl.h: $NGX_MAKEFILE
  cd $OPENSSL \\
- && \$(MAKE) clean \\
+ && if [ -f Makefile ]; then \$(MAKE) clean; fi \\
  && ./config --prefix=$ngx_prefix no-shared $OPENSSL_OPT \\
  && \$(MAKE) \\
  && \$(MAKE) install LIBDIR=lib
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nginx__configure_3.patch
Type: application/octet-stream
Size: 875 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20131104/81f42654/attachment.obj>


More information about the nginx-devel mailing list