Opened 10 years ago

Last modified 10 years ago

#7706 closed Bugs

cross compiling of threads library - JamFile.v2 — at Version 2

Reported by: tvaneerd@… Owned by: viboes
Milestone: Component: thread
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc: viboes

Description (last modified by viboes)

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 tvaneerd@…, 10 years ago

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) ;
 }
 

comment:2 by viboes, 10 years ago

Cc: viboes added
Component: Nonethread
Description: modified (diff)
Owner: set to viboes
Status: newassigned
Note: See TracTickets for help on using tickets.