Re: [PATCH] search for modern malloc implementation

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 30 May 2010 00:09:37 +1200

Kinkie wrote:
> On Sat, May 29, 2010 at 8:58 AM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
>> This updates configure.in to make it search for and link in a modern malloc
>> library. If none is found the default libc implementation is used.
>
> To save flags state in configure.in there's utility functions, please
> see SQUID_STATE_SAVE/SQUID_STATE_COMMIT/SQUID_STATE_ROLLBACK in
> acinclude/squid-util.h

Ah. okay.

>
> I'm also not totally sure about AC_SEARCH_LIBS: will "-nostdinc" flag
> will prevent from linking libc's malloc? In general one of the

It does. For g++ anyway. That "none needed" was the biggest problem I've
hit so far.

> possible outputs is "none needed" (which may be the case if any of the
> malloc libs have been added to LIBS earlier in the process, or as

AC_SEARCH_LIBS seems to be run with the current LIBS variable as one of
the assumed parameters so this is not a problem.

> environment variable).. Also, we need to consider non-gcc compilers,
> and their version of -nostdinc..
>

Yes. That is still an unknown.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.3
Received on Sat May 29 2010 - 12:09:46 MDT

This archive was generated by hypermail 2.2.0 : Sun May 30 2010 - 12:00:13 MDT