Welcome! Log In Create A New Profile

Advanced

Re: building nginx with non-system openssl ?

Ben DJ
April 03, 2010 06:48PM
Hi Maxim,

On Sat, Apr 3, 2010 at 3:05 PM, Maxim Dounin <mdounin@mdounin.ru> wrote:
> If you want to use installed version, use:
> ./configure --with-cc-opt="-I /path/to/include" --with-ld-opt="-L /path/to/lib"
....
> These options are used to build OpenSSL library from sources.
> Additional options are passed to OpenSSL's ./config.

That clears it up, thanks. 'cc-opt' & 'ld-opt' were simply not clear to me.

I removed the --with-openssl= (though those _are_ vanilla sources
....), and added,

ld-opt="-L/usr/local/ssl/lib -Wl,-rpath,/usr/local/ssl/lib -lssl
-lcrypto -ldl -lz"
cc-opt="-I/usr/local/include -I/usr/local/ssl/include -I/usr/include"

to ensure both that 'my' ssl libs are found before the system libs,
and the rpath ensures the correct runtime dynamic lib links.

with those, it works,

ldd objs/nginx | egrep "ssl|crypto"
libssl.so.1.0.0 => /usr/local/ssl/lib/libssl.so.1.0.0 (0xb7849000)
libcrypto.so.1.0.0 => /usr/local/ssl/lib/libcrypto.so.1.0.0 (0xb76ca000)

which is exactly what i was looking to do.

> nginx do honor CFLAGS (use -r in grep, it helps), but not LDFLAGS.

actually, i _had_, just a typo in my post, but had failed to search
from TOP_DIR. :-/

in any case, nginx is up & running, and i'm working on configuring
front-end proxy behavior :-)

Thanks!

BenDJ

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

building nginx with non-system openssl ?

Ben DJ April 02, 2010 11:32PM

Re: building nginx with non-system openssl ?

Maxim Dounin April 03, 2010 06:10PM

Re: building nginx with non-system openssl ?

Ben DJ April 03, 2010 06:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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