Opened 10 years ago

Last modified 10 years ago

#7706 closed Bugs

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

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

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

}

Change History (0)

Note: See TracTickets for help on using tickets.