Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-04-29 01:12:26


On Friday 29 April 2005 01:18, BRIDGES Dick wrote:
> Apologies in advance if I missed the docs describing how to accomplish
> this. I *REALLY* tried to find them on my own.
>
>
>
> I'd like to build the boost libraries for multiple gcc [cross]
> compilers. I think the first step would be to modify a user-config.jam
> to include something like the following:
>
>
>
> <snippet>
>
> using gcc : 3.4 ;
>
> using gcc : 3.? : /path/one/arm-g++ : <other stuff> ;
>
> using gcc : 3.? : /path/two/ppc-g++ : <other stuff> ;
>
> <snippet/>
>
>
>
> But then I'm stuck. (1) How do I invoke bjam to compile all three
> libraries - the default that's in the path (linux x86 in this case),
> then the arm-g++, then the ppc-g++?

I'd use this:

using gcc : 3.4 ;
using gcc : 3.4arm : /path/one/arm-g++ : <other stuff> ;
using gcc : 3.4ppc : /path/two/ppc-g++ : <other stuff> ;

and them

bjam gcc-3.4 gcc-3.4arm gcc-3.4ppc

> (2) Then there's the question of
> having the results show up in three different directory trees;

Will be done automatically with the above.

> (3) and
> finally, how do I differentiate version numbers when the version number
> is the same for all three compilers?

What do you mean? Version number is basically string, you can put everything
there. Boost.Build interprets that string in any way only for msvc, but not
for gcc.

> PS: I thought I saw that an "alias" could be added to each version by
> including it after the version followed by a space (i.e.,
>
> using gcc : 3.? gcc-arm : /path/one/arm-g++ : <other stuff> ;) Now I
> can't find this mentioned. Does it work this way - or was I smoking
> crayons?

Well, I did not seen this method ;-)

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2
 

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