|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-10-23 06:40:10
Steven T. Hatton wrote:
>
> How do I get bjam to produce the following (or equivalent) invocation?:
>
> g++ -ovmosg main.cc -I/code/root -L/opt/org/osg/lib -losg -losgProducer
>
> The -l flags translate into files named similar to this:
>
> -losgProducer ==> libosgProducer.so
>
> I get the -I/<path>/<to>/<include> by using expressions such as this:
> `<include>$(OSG)/include' in the requirements block. Likewise for the -L
> flags. What I haven't been able to produce are the -l flags.
Declare the lib with
lib osg ;
and then use it in your exe. This is documented in more detail at:
http://boost.org/boost-build2/doc/html/bbv2.advanced.builtins.targets.html#id2509201
- Volodya
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