Welcome! Log In Create A New Profile

Advanced

[PATCH] Configure: fix build from sources for OpenSSL on OS X

Piotr Sikora
June 17, 2014 06:42PM
# HG changeset patch
# User Piotr Sikora <piotr@cloudflare.com>
# Date 1403044587 25200
# Tue Jun 17 15:36:27 2014 -0700
# Node ID 3e29d10e56a059b2a8fe54bd8b913a7e399a5672
# Parent ec919574cc14f7781c0ca212cffec586f88eec40
Configure: fix build from sources for OpenSSL on OS X.

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

diff -r ec919574cc14 -r 3e29d10e56a0 auto/lib/openssl/make
--- a/auto/lib/openssl/make Tue Jun 17 16:51:25 2014 +0400
+++ b/auto/lib/openssl/make Tue Jun 17 15:36:27 2014 -0700
@@ -51,12 +51,20 @@ END
*) ngx_prefix="$PWD/$OPENSSL/.openssl" ;;
esac

+ if [ "$NGX_SYSTEM" = "Darwin" -a "$NGX_MACHINE" = "x86_64" \
+ -a -z "`echo $CFLAGS | grep 'arch i386'`" ];
+ then
+ OPENSSL_CONFIG="./Configure darwin64-x86_64-cc"
+ else
+ OPENSSL_CONFIG="./config"
+ fi
+
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


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

[PATCH] Configure: fix build from sources for OpenSSL on OS X

Piotr Sikora 695 June 17, 2014 05:58AM

Re: [PATCH] Configure: fix build from sources for OpenSSL on OS X

Ruslan Ermilov 323 June 17, 2014 06:18AM

[PATCH] Configure: fix build from sources for OpenSSL on OS X

Piotr Sikora 315 June 17, 2014 06:30AM

Re: [PATCH] Configure: fix build from sources for OpenSSL on OS X

Maxim Dounin 287 June 17, 2014 06:38AM

Re: [PATCH] Configure: fix build from sources for OpenSSL on OS X

Piotr Sikora 342 June 17, 2014 06:50AM

Re: [PATCH] Configure: fix build from sources for OpenSSL on OS X

Ruslan Ermilov 348 June 17, 2014 06:58AM

Re: [PATCH] Configure: fix build from sources for OpenSSL on OS X

Maxim Dounin 333 June 17, 2014 07:26AM

Re: [PATCH] Configure: fix build from sources for OpenSSL on OS X

Piotr Sikora 309 June 17, 2014 06:40PM

Re: [PATCH] Configure: fix build from sources for OpenSSL on OS X

Maxim Dounin 419 June 19, 2014 07:56AM

[PATCH] Configure: fix build from sources for OpenSSL on OS X

Piotr Sikora 359 June 17, 2014 06:42PM



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

Online Users

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