Boost logo

Boost-Build :

From: Max Stroev (stroev_at_[hidden])
Date: 2005-04-12 05:39:29


Hi.
I tried to use Boost.Build V2 to build applications for some custom embedded
system. The building process uses modified GCC tools and has complicated
linking stage whch consist of three steps:
1) *.o and *.a files are linked to app.xxx,
2) app.xxx and *.a are linked to app.yyy (with linking scripts different
from previous step),
3) app.yyy is converted to app.zzz, that is an executable.

I'm writing custom toolset module and my question is how to write a link
rules/actions correctly.
Should I use a generators? I tried this code, but I don't like it and it
does't work:

type.register XXX : xxx ;
generators.register-composing egcc.xxxlink : OBJ SEARCHED_LIB STATIC_LIB
: XXX : <toolset>egcc ;

type.register YYY : yyy ;
generators.register-composing egcc.yyylink : XXX SEARCHED_LIB STATIC_LIB
: YYY : <toolset>egcc ;

generators.register-standard egcc.link : YYY : EXE : <toolset>egcc ;

Truly yours, Max Stroev

 


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