Boost logo

Boost-Build :

Subject: Re: [Boost-build] #7706 : cross compiling of threads library - JamFile.v2
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-12-09 10:59:28


Le 09/12/12 16:00, Steven Watanabe a écrit :
> AMDG
>
> On 12/09/2012 04:03 AM, Vicente J. Botet Escriba wrote:
>> Hi,
>>
>> in https://svn.boost.org/trac/boost/ticket/7706 it has been suggested to
>> make this change
>>
>> @@ -105,7 +107,7 @@
>> local rule default_threadapi ( )
>> {
>> local api = pthread ;
>> - if [ os.name ] = "NT" { api = win32 ; }
>> + if <target-os>windows in $(properties) { api = win32 ; }
>> return $(api) ;
>> }
>>
>>
>> and it doesn't work on MinGW as the test is always false. Is target-os
>> defined by default? Even giving it on the command line doesn't works?
>>
>> What am I doing wrong? Is there a way to solve this issue?
>>
> What is properties? Where is it defined?
> If it's undefined, then it's treated as
> an empty list, so the test is, of course, false.
>
You are right. the variable properties is not seen in this function. Do
you know how cross compile?

Best,
Vicente


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