Boost logo

Boost-Build :

Subject: Re: [Boost-build] Wrong target-os with cross-compiler
From: Christian Auby (christian_at_[hidden])
Date: 2010-04-25 12:55:43


On a similar note, target-os=linux really should default thread-api to
pthread.

Christian

On 4/24/2010 7:54 PM, Steven Watanabe wrote:
> 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
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>


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