Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-01-17 08:59:21


Toon Knapen <toon.knapen_at_[hidden]> writes:

> On Friday 17 January 2003 13:55, David Abrahams wrote:
>> Toon Knapen <toon.knapen_at_[hidden]> writes:
>> > In intel-linux tools, the link-line first contains -l$(FINDLIBS) and next
>> > $(NEEDLIBS). Whould'nt it make more sense to revert the order. NEEDLIBS
>> > typically contains other libs in the same project (==boost) whereas
>> > FINDLIBS typically contains external and/or system libs. NEEDLIBS is thus
>> > very likely to depend on FINDLIBS and thus needs to be in front of
>> > FINDLIBS.
>> >
>> > (I remember to have made the same remark about the link-line in
>> > gcc-tools.jam but still wanted first an 'OK' of everyone involved)
>>
>> I think you're right; it's OK with me if you change it.
>
> Done. I've also retained only one of the two NEEDLIBS (all libs appeared twice
> in the link-line). Is that OK ? This would only be necessary in case there
> would be circulare dependencies and I'm sure a well designed project like
> boost does not suffer from circular dependencies ;)

No, please restore that feature. The build system offers no
guarantees about the order in which specified libraries will be added
to NEEDLIBS, and we'd rather work in all circumstances than save
whatever miniscule amount of link time it takes to deal with the
repetition.

-- 
                       David Abrahams
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk