Re: [squid-users] NEED HELP: How to complie Squid 3.2.6 with TCMALLOC for high performance ??

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 13 Jan 2013 18:14:30 +1300

On 13/01/2013 4:58 p.m., stanley wrote:
> I did the steps :
>
> 1:install libunwind lib. (version is : libunwind-1.1)
>
> 2:install google-perftools (version is : gperftools-2.0)
>
> 3:download squid-3.2.5.tar.gz & extract , then configure , then

configure how? with what command line?

> modify /src/Makefile follow the article :
>
> # vi src/Makefile
>
> squid_LDADD = \
> -L../lib \
> -ltcmalloc_minimal \
> \
> ..
> data_DATA = \
> mib.txt
> LDADD = -L../lib -lmiscutil -lpthread -lm -ltcmalloc_minimal
>
>
> i did not find the string " -L../lib \" .
>
>
>
> please help me , how to do that . thank u very much .

You should not need to modify Makefiles manually at any point.

All you should need is:
   ./configure CXXFLAGS="-ltcmalloc_minimal" CFLAGS="-ltcmalloc_minimal"

Amos
Received on Sun Jan 13 2013 - 05:14:44 MST

This archive was generated by hypermail 2.2.0 : Mon Jan 14 2013 - 12:00:03 MST