Boost logo

Boost-Build :

Subject: Re: [Boost-build] Wrong target-os with cross-compiler
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-04-24 13:54:11


AMDG

Steve Soule wrote:
> My computer is running Suse Linux 11.2, and I have the MinGW gcc windows
> cross-compiler installed. But when I use the cross-compiler, Boost
> Build mistakenly sets the target-os property to "linux" instead of
> "windows". So I can't build with just:
>
> bjam toolset=gcc-mingw
>
> I have to do:
>
> bjam toolset=gcc-mingw target-os=windows
>
> Also, because the default is "linux", it adds "target-os-windows" to the
> build path.
>
> Shouldn't Boost Build figure out the default target-os automatically?

I don't know if this is the best way, but I have

    toolset.add-requirements
        <toolset-gcc:version>3.3.6:<target-os>cygwin
        <toolset-gcc:version>3.4.4:<target-os>cygwin
        <toolset-gcc:version>4.2.3:<target-os>cygwin
        <toolset-gcc:version>4.3.0:<target-os>cygwin
    ;

in my user-config.jam. You can probably do something
similar.

In Christ,
Steven Watanabe


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