Boost logo

Boost-Build :

Subject: Re: [Boost-build] [Boost][build] Bjam ordering source $(>) list
From: Juergen Hunold (juergen.hunold_at_[hidden])
Date: 2009-06-26 05:53:18


Hi !

On Friday 26 June 2009 01:13:26 K. Noel Belcourt wrote:
> All these sources (and the sources in these dependencies) get lumped
> into the $(>) variable that is passed into the link action.

Yes, that is what I found out, too.

> I guess what I'm wondering is why are all the exe (and dependent)
> sources (object and libraries) lumped into $(>)? Perhaps the follow-
> on question is: given that the objects and libraries in the exe rule
> sources are all in $(>), can we apply a stable sort to $(>) so that
> the objects precede the libraries while retaining the original
> relative ordering. This will help us on systems where we don't have
> a multi-pass linker nor options like start / end group.
>
> Does that make any sense?

At least for me, yes.

I've encountered a similar problem while implementing response file support
for gcc on windows. I ended up extrating the libs from $(>) and passing them
to the build rule. Unfortunately, I have historical circular dependencies.
I attach the relevant part of my gcc.jam patch for completeness.

I would like to know more about building the sources of $(>), too.

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !



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