Welcome! Log In Create A New Profile

Advanced

Re: compile ngx_resty to statically link some libs?

December 01, 2011 08:45PM
To close out the thread, here's some shell snippets that produce an nginx binary with libdrizzle statically liniked in:

<snip>
curl http://agentzh.org/misc/nginx/ngx_openresty-1.0.9.10.tar.gz | tar -zxvf -
cd ngx_openresty-1.0.9.10
curl http://agentzh.org/misc/nginx/drizzle7-2011.07.21.tar.gz | tar -zxvf -

# build librizzle statically
(cd drizzle7-2011.07.21 && ./configure --without-server --enable-static && make libdrizzle-1.0)
find . -name libdrizzle.a -exec cp {} . \;
export LIBDRIZZLE_INC=`pwd`/drizzle7-2011.07.21/libdrizzle-1.0/
export LIBDRIZZLE_LIB=`pwd`
./configure --prefix=/data/local/nginx-resty-1.0.9.10 --with-http_drizzle_module --add-module=$HOME/src/third-party/nginx-gridfs --add-module=$HOME/src/third-party/nginx_upload_module-2.2.0 --with-ld-opt="-Bstatic"
gmake

[david@dev-3 ngx_openresty-1.0.9.10]$ ldd build/nginx-1.0.9/objs/nginx | grep drizzle
[david@dev-3 ngx_openresty-1.0.9.10]$
</snip>

Huzzah!
Subject Author Posted

compile ngx_resty to statically link some libs?

dannynoonan November 14, 2011 09:30PM

Re: compile ngx_resty to statically link some libs?

agentzh November 14, 2011 11:26PM

Re: compile ngx_resty to statically link some libs?

dannynoonan November 15, 2011 05:35AM

Re: compile ngx_resty to statically link some libs?

agentzh November 15, 2011 08:38PM

Re: compile ngx_resty to statically link some libs?

dannynoonan November 17, 2011 05:33PM

Re: compile ngx_resty to statically link some libs?

dannynoonan November 17, 2011 09:20PM

Re: compile ngx_resty to statically link some libs?

dannynoonan December 01, 2011 08:45PM

Re: compile ngx_resty to statically link some libs?

agentzh November 17, 2011 10:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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