Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-11-22 04:15:02


On Sunday 21 November 2004 06:09, Daniel Holth wrote:
> On Sat, 2004-11-20 at 15:21 +0300, Vladimir Prus wrote:
> > > E.g. bjam cw-8.3 target-os=mac # os=NT
> >
> > bjam cw-8.3 host-os=NT host-os=LINUX
> >
> > > might be <os-api>, is to allow support for different APIs, e.g.:
>
> Alright, cross compilation. Good idea! :-)
>
> I'm trying to understand this myself. I think boost build v2 would
> produce lovely win32 executables under linux if a few things change:
> every toolset command gets the target platform name prepended to it
> (i586-mingw32msvc-gcc)

This is surely possible. However, you can experiment with cross-compiling even
now:

using gcc : mingw : .............. ;

on Linux will allow you to write

bjam gcc-mingw

> and then it looks like there are only a very few
> other things that need to be detected based on the target platform
> instead of the build platform. Unfortunately, I don't yet really
> understand how to modify boost.build...

And I don't have the time to investigate what need to be changed. If you're
interested, we can share the work -- you'll figure out what changes are
necessary and I'll tell how to make them.

> Two comments about this <os-api> or <target-os> business: don't forget
> sometimes there is no os. Also, autotools uses the --host= argument
> which basically specifies the processor and os the compiled program will
> run under.

We would like to eventually support the <architecture> feature.

- 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