|
Boost-Build : |
From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2004-08-24 06:58:58
Vladimir Prus wrote:
> Generally, <library> should be preferred to <find-shared-library> in all
> cases. The second one is too dumb and is mainly for internal purposed. But
> that brings us back to the order question. I think you need specific order of
> libraries because there are dependencies between them.
>
> You can express that using the <use> property. Hmm... it seems I've started to
> making that property work with searched libraries, but has not finished
> yet... done now, you'd need to fetch revision 1.4 of tools/unix.jam
>
> Now, if I have:
>
> exe main : main.cpp b a ;
> lib a ;
> lib b ;
>
> Then the command line contains: "-la -lb". If I have
>
> exe main : main.cpp b a ;
> lib a ;
> lib b : : <use>a ;
>
> then the command line contains "-lb -la", as it should if 'b' uses function
> from 'a'.
>
> So you can try this approach, too.
This works like a charm. Thanks !!!
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