Opened 10 years ago
Last modified 10 years ago
#7706 closed Bugs
cross compiling of threads library - JamFile.v2 — at Version 2
| Reported by: | Owned by: | viboes | |
|---|---|---|---|
| Milestone: | Component: | thread | |
| Version: | Boost 1.52.0 | Severity: | Problem |
| Keywords: | Cc: | viboes |
Description (last modified by )
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) ;
}
Change History (2)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
| Cc: | added |
|---|---|
| Component: | None → thread |
| Description: | modified (diff) |
| Owner: | set to |
| Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.

grrr, forgot about WikiFormatting again
@@ -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) ; }