Compiling nginx 64-bit on opensolaris

I’ve tried and unless I missed something, it doesn’t look trivial.
Is there switch for amd64 somewhere in configure or environment
variables?

using

CC="/opt/SSX0903/bin/cc -m64" ./configure --prefix=/usr/local/nginx

doesn’t work immediately because it still uses x86 files
(ngx_sunpro_x86.*) when compiling. I manually ‘fixed’ by sed-ing
objs/Makefile, replacing all sunpro_x86 with sunpro_amd64 and later
renaming src/os/unix/ngx_sunpro_x86.map to
src/os/unix/ngx_sunpro_amd64.map

It then compiles and runs just fine (or so it looks like)

On Mon, Apr 27, 2009 at 11:36:22PM +0700, Edho P Arief wrote:

renaming src/os/unix/ngx_sunpro_x86.map to
src/os/unix/ngx_sunpro_amd64.map

It then compiles and runs just fine (or so it looks like)

Try ./configure --with-cpu-opt=amd64 …

On Mon, Apr 27, 2009 at 11:36 PM, Edho P Arief [email protected]
wrote:

renaming src/os/unix/ngx_sunpro_x86.map to
src/os/unix/ngx_sunpro_amd64.map

It then compiles and runs just fine (or so it looks like)


O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

by immediately I mean without additional environment variables / extra
setting when doing make

2009/4/28 Igor S. [email protected]:

(ngx_sunpro_x86.*) when compiling. I manually ‘fixed’ by sed-ing
Igor S.
http://sysoev.ru/en/

thanks. I’ve thought that is the parameter I need but not too sure
since it doesn’t mention amd64.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs