Boost logo

Boost Users :

Subject: Re: [Boost-users] Cross compiling
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-01-30 02:08:59


Yepez, Esteban wrote:

> the problem is that I don't know how to tell jam to use my embedded compiler when it tries to
> generate build.jam
>
> sh ./build.sh

When building bjam, with "./build.sh", you don't need to use your embedded compiler. bjam is purely
host binary, it does not know anything about the compiler that will be used later.

> Yes, initially, I had modified the build.sh and set BOOST_JAM_CC=tile-gcc. But like you said, I
> want to use the host compiler in the first stage

Yes, so you build bjam for the host.

> and the target compiler to do the last bit.
>
> So I still get an error because it doesn't pick up the embedded compiler tile-gcc

After you've build bjam for the host, you follow instructions at:

        http://www.boost.org/boost-build2/doc/html/bbv2/tasks/crosscompile.html

which shows both where to specify the compiler command, and how to request that this
compiler be used. Did you try those instructions?

- Volodya
 


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net