Boost logo

Boost-Build :

Subject: [Boost-build] Cross-compiling
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-09-29 12:19:41


I've checked in few patches

        http://svn.boost.org/trac/boost/changeset/49009
        http://svn.boost.org/trac/boost/changeset/49010
        http://svn.boost.org/trac/boost/changeset/49011

that intend to make cross compiling, or specifically linux->mingw cross,
just work. I have this in user-config.jam:

        using gcc : : i586-mingw32msvc-g++ ;

and I am able to go to example/libraries and do:

        bjam toolset=gcc-4.2.1 target-os=windows threading=multi

and thing work fine -- with right options passed to gcc, and right
naming of binaries. I can also build Boost.Thread with:

        bjam toolset=gcc-4.2.1 target-os=windows threading=multi threadapi=win32 --with-thread

We probably can cut down on the number of things to say on command line,
but still, it works. Of course, I still have to document things.

If somebody could give it an independent try, this would be much appreciated.

-- 
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