Boost logo

Boost-Build :

From: Mat Marcus (mat-lists_at_[hidden])
Date: 2008-07-02 11:31:21


On Wed, Jul 2, 2008 at 5:04 AM, Paul <elegant_dice_at_[hidden]> wrote:
[snip]
> Thanks for that, finally its taking notice...
> But, why does it still want to link to pthreads?

Because, if I understand correctly, for some reason threads was
modified in boost 1.35.0 to depend how bjam was compiled/which shell
is in use. Until threads is fixed, when "cross-compiling" for msvc
under cygwin, I use the following workaround in my user-config.jam:

#these lines needed to use threads with msvc under cygwin
toolset.add-requirements
  <toolset>msvc:<target-os>windows
  <toolset>msvc:<threadapi>win32 ;

I also use:

toolset.add-requirements
  <toolset>gcc:<target-os>cygwin
  <toolset>gcc:<threadapi>pthread ;

for the reverse cross-compilation. This mostly works, except for the
unpleasant fact that, even under the same taget-os, the paths under
which artifacts are built vary according to how bjam was
compiled/which shell is in use.

 - Mat


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