Fail to complie nginx with google-perftools

Wendal Chen wendal1985 at gmail.com
Thu Aug 4 04:00:20 UTC 2011


It works!!

Thank you

2011/8/4 Maxim Dounin <mdounin at mdounin.ru>

> Hello!
>
> On Thu, Aug 04, 2011 at 09:03:01AM +0800, Wendal Chen wrote:
>
> > I compile nginx with  google-perftools 1.8.1
> >
> >     ./configure  --with-cc-opt=-ltcmalloc
>
> You've passed "-ltcmalloc" as compiler flag, while it's linker
> one.  The only effect that it confuses ./configure which does
> compile and link in one step while doing tests.
>
> If you want to build nginx with tcmalloc library linked, use
>
>    ./configure --with-ld-opt=-ltcmalloc
>
> instead.
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



-- 
Wendal Chen
<http://t.sina.com.cn/1068040557?s=6uyXnP>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20110804/776584ab/attachment.html>


More information about the nginx mailing list