Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-03-21 05:49:16

Hi Ali,

> I've started looking at this. It seems as though it is the <dependency>
> properties rather than the <library> properties which are helpful to me
> (i.e. use "feature.get-values <dependency>").


> lib $(LibId)
> : $(Source) # only direct source files
> : <dependency>$(DirectSubLibs) # allows me to find headers of my
> sublibs (through
> # their usage-requirements)
> : <library>$(DirectSubLibs) # directs exe's who use me to link
> also to my sublibs
> ;
> Now this works just fine, except for the libraries being in no
> particular order on the link line, so I don't think it's "wrong", but
> you may have expected something different?

The setting above is what I'd expect. The question is how to order the
libraries. If 'DirectSubLibs' is "a" and "b", I assumed something like:

lib a : a.cpp : <library>b ;
lib b : b.cpp ;

would result in 'b' put before 'a' on the linker's command line. Now, I'm
having problems defending this approach --- yours looks better. So, please
you <dependency> feature. In future, then <dependency> will be renamed to
<using> we'll have

lib a : a.cpp : <using>b ;
lib b : b.cpp ;

which is quite intuitive.

- Volodya


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at