Fail to complie nginx with google-perftools

Maxim Dounin mdounin at
Thu Aug 4 01:39:23 UTC 2011


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


Maxim Dounin

More information about the nginx mailing list