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

Maxim Dounin mdounin at mdounin.ru
Tue Jun 17 11:25:17 UTC 2014


On Tue, Jun 17, 2014 at 03:48:29AM -0700, Piotr Sikora wrote:

> Hey Maxim,
> > The problem seems to be in OpenSSL as it fails to detect default
> > arch to build for
> Agreed.
> > and looking into config script suggests a quick
> > fix is to set KERNEL_BITS=64 in the environment.
> Except that KERNEL_BITS trick requires OpenSSL-1.0.1+.

That's sad, but I don't think it matters.

BTW, looking into OpenSSL 0.9.7 suggests it should be fine, and the 
change proposed will break build.

> > I don't think nginx should try to do anything with this.
> So it's better to not build at all? And why is the workaround for
> pretty much the same issue fine for perl but not OpenSSL? It's really
> not that intrusive change...

The workaround for perl is to make it possible to build nginx with 
a perl version available by default, and it changes nothing in 
other cases.

Suggested patch for OpenSSL, in contrast, only required for build 
of OpenSSL by nginx (which is exotic on OS X anyway), only needed 
for old versions of OpenSSL, and will break building for i386 if 
needed for whatever reason, as well as building of at least some 
supported OpenSSL versions.

Maxim Dounin

More information about the nginx-devel mailing list