A build of nginx with static-linked OpenSSL fails on Mac

Maxim Dounin mdounin at mdounin.ru
Mon Jan 12 15:43:16 UTC 2015


Hello!

On Fri, Jan 09, 2015 at 05:45:39AM -0500, cubicdaiya wrote:

> Hello.
>  
> A build of nginx with static-linked OpenSSL seems to fail on Mac.
>  
> $ uname -ar
> Darwin host 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT
> 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64 
> $ cd nginx-1.7.9
> $ ./configure \
>  --with-http_ssl_module \
>  --with-openssl=../openssl-1.0.1k
> $ make
>               .
>               .
>               .
> Operating system: i686-apple-darwinDarwin Kernel Version 14.0.0: Fri Sep 19
> 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64
> WARNING! If you wish to build 64-bit library, then you have to
>          invoke './Configure darwin64-x86_64-cc' *manually*.
>                   You have about 5 seconds to press Ctrl-C to abort.

[...]

> Though the rough patch below fixes failure, is there a better solution
> expect dynamic-linking OpenSSL?

Defining KERNEL_BITS=64 in the environment will convince recent 
enough OpenSSL to build 64-bit library instead.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list