Robert Collins wrote:
> On Tue, 2009-11-03 at 13:19 +1300, Amos Jeffries wrote:
>> Just a note on this change...
>>
>> I'm trying to get rid of XTRA_LIBS entirely. It's adding to the code bloat
>> and external library dependencies in Squid.
>
> This isn't clear to me, can you expand on it please. Specifically how
> XTRA_LIBS - the list of additional libraries to link against - is
> different to COMMON_LIBS.
Very little.
XTRA_LIBS is old and pulls in a mix of external libraries, local lib/*
files, paths and sometimes build flags.
It's used in some of the older binaries under helpers, tools, test-suite
etc.
For one small example; XTRA_LIBS currently pulls into the ufsdump helper
(which only really needs storage, diskio, crypt/md5, and _maybe_ the
header parser):
* epoll - main squid binary only.
* windows threading libraries - main binary only.
* kerberos libraries and build flags - main binary and one helper only.
* OpenSSL libraries - main binary only.
* berkley db - session helper only.
COMMON_LIBS was added by Alex quite recently. It seems to be used only
within src/Makefile.am and for compatibility sharing of the base/core
convenience libraries use by the older slightly bloated binaries built
there.
I'm viewing it as a slightly cleaned up version of XTRA_LIBS.
Binaries built elsewhere have been pared down to minimal linkages
already. Or for helpers are in the process of that happening now.
As the unit-tests are cleaned up they only have a list of libraries used
by the test and stubs for the hanging bits.
Amos
-- Please be using Current Stable Squid 2.7.STABLE7 or 3.0.STABLE20 Current Beta Squid 3.1.0.14Received on Tue Nov 03 2009 - 04:00:00 MST
This archive was generated by hypermail 2.2.0 : Tue Nov 03 2009 - 12:00:03 MST