Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7706: cross compiling of threads library - JamFile.v2
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-01 22:26:17
#7706: cross compiling of threads library - JamFile.v2
-------------------------------+--------------------------------------------
Reporter: tvaneerd@⦠| Owner: viboes
Type: Bugs | Status: assigned
Milestone: To Be Determined | Component: thread
Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Changes (by viboes):
* cc: viboes (added)
* owner: => viboes
* status: new => assigned
* component: None => thread
Old description:
> Thread's jam file assumes the compile target is the same as the host :-(
>
> ie a check for windows should probably be a check for the target being
> windows:
>
> @@ -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) ;
> }
New description:
Thread's jam file assumes the compile target is the same as the host :-(
ie a check for windows should probably be a check for the target being
windows:
{{{
@@ -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) ;
}
}}}
-- -- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7706#comment:2> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC