|
Boost-Build : |
From: Rush Manbert (rush_at_[hidden])
Date: 2006-08-25 14:19:40
John Maddock wrote:
> Rush Manbert wrote:
>
>>If I build Boost from source and determine that BOOST_HAS_THREADS is
>>defined for every file that is compiled, is the resulting library the
>>multi-threaded version, or is there some other setting that matters?
>
>
> Yes the flags that make your compiler generate thread safe code :-)
>
> BOOST_HAS_THREADS should be turned on automatically by Boost.Config if your
> compiler is in multi-thread mode. You shouldn't need to set it yourself: if
> you do it indicates there may be a compiler option missing.
>
> HTH, John.
Thanks John, it certainly does help. I'm building the Boost libs for
MacOSX. I get release and debug variants, but none of the libraries
contain the "-mt" in their names. I did convince myself that
BOOST_HAS_THREADS was defined for every file that was compiled, so now
I'm satisfied that I really do have multi-thread libraries. There does
seem to be some bug in the build, though, because the library file names
indicate that they are single-threaded.
Thanks again,
Rush
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