|
Boost-Build : |
From: Zbynek Winkler (zwin_at_[hidden])
Date: 2004-03-15 04:44:30
Vladimir Prus wrote:
>>PS. For now I was able to circumvent the problem by using 'alias' instead
>>of 'lib'. Why cannot we change all static libraries for the final linking
>>stage to aliases? Isn't static library just a convenience for distribution?
>
> So, instead of making a library, you just compile all the sources?
The way I am using it right now is that I've replaced all my 'lib :... :
<link>static' with 'alias...'. The way I understand it is that with alias I
get the actual objects on the linking command line and since the objects have
no ordering issue my problem is solved. The objects are compiled just once in
either case.
BTW: I do not really understand the problem gcc linker has with static
libraries. The way I understand it is that *.a is just a sofisticated *.tar
with *.o inside and since there is no ordering problem for the *.o - why there
is for *.a??? IMHO the linker does all the work related to linking, right? So
there is the same amout of work done for linking the exe directly from objects
as there is for linking it from static libs, right? If this is true then it is
IMHO just plain bug in gcc...
Zbynek
-- http://zw.matfyz.cz/ http://robotika.cz/ Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk