[PATCH] Configure: fix build from sources for OpenSSL on OS X
Piotr Sikora
piotr at cloudflare.com
Tue Jun 17 10:28:12 UTC 2014
# HG changeset patch
# User Piotr Sikora <piotr at cloudflare.com>
# Date 1403000738 25200
# Tue Jun 17 03:25:38 2014 -0700
# Node ID a5e387ac0357073df23e07e58ef1437fc0c15c1b
# Parent baf2816d556d26b79ecc745140b408d59908a182
Configure: fix build from sources for OpenSSL on OS X.
Signed-off-by: Piotr Sikora <piotr at cloudflare.com>
diff -r baf2816d556d -r a5e387ac0357 auto/lib/openssl/make
--- a/auto/lib/openssl/make Tue Jun 17 12:07:06 2014 +0400
+++ b/auto/lib/openssl/make Tue Jun 17 03:25:38 2014 -0700
@@ -51,12 +51,17 @@ END
*) ngx_prefix="$PWD/$OPENSSL/.openssl" ;;
esac
+ case "$NGX_PLATFORM" in
+ Darwin:*:x86_64) OPENSSL_CONFIG="./Configure darwin64-x86_64-cc" ;;
+ *) OPENSSL_CONFIG="./config" ;;
+ esac
+
cat << END >> $NGX_MAKEFILE
$OPENSSL/.openssl/include/openssl/ssl.h: $NGX_MAKEFILE
cd $OPENSSL \\
&& if [ -f Makefile ]; then \$(MAKE) clean; fi \\
- && ./config --prefix=$ngx_prefix no-shared $OPENSSL_OPT \\
+ && $OPENSSL_CONFIG --prefix=$ngx_prefix no-shared $OPENSSL_OPT \\
&& \$(MAKE) \\
&& \$(MAKE) install LIBDIR=lib
More information about the nginx-devel
mailing list