Boost logo

Boost Users :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2004-04-29 18:28:38


Richard Hadsell wrote:

> Rene Rivera wrote:
>
>> Solving this will require changing the archive action in the
>> tru64cxx65-tools.jam file. The most generic way I can think of is to
>> change it to something like so:
>>
>> actions updated together piecemeal tru64cxx65-Archive-action
>> {
>> rm -f $(<)
>> ar r$(ARFLAGS) $(<) $(>)
>> for i in "$(<[1]:D)"/cxx_repository/* ; do ar r$(ARFLAGS) $(<) $i ;
>> done
>> }
>>
>> Tell me what works for you and I'll update the toolset in CVS.
>
>
> This was great advice. The unfortunate thing about the general way,
> adding just one file from the repository at a time, is the huge overhead
> of each call to ar. I remember trying this myself a couple of years ago
> and deciding it was unacceptable. That was why I added as many object
> files at a time as I could get away with. This time, I had to break it
> into four pieces:

Hmm, I think there's a way around the problem. Since the archive is
getting recreated each time we can use the much faster "q" (append)
option instead of the slow "r" (add/replace). Try the general solution
but using "ar q..." instead if "ar r.."

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net