compile ngx_resty to statically link some libs?

agentzh agentzh at gmail.com
Tue Nov 15 04:24:01 UTC 2011


On Tue, Nov 15, 2011 at 10:30 AM, dannynoonan <nginx-forum at nginx.us> wrote:
> Hey agentzh, could you provide tips on how I could cut down this list of
> dynamically linked libs:
>
[snip]
>
> Specifically, I'd really like to remove libdrizzle as a dependency on
> the target machine and just have the compile pull it in at link time.
>

Try

    ./configure --with-ld-opt="-static" ...

while building ngx_openresty :)

Regards,
-agentzh



More information about the nginx mailing list