Boost logo

Boost-Build :

From: Andreas Huber (ahd6974-spamgroupstrap_at_[hidden])
Date: 2005-01-21 09:07:07


John Maddock wrote:
[snip]
> Now lets try your proposal, with <threading>single defining
> BOOST_DISABLE_THREADS:
>
> 1) A default Boost library build (no threading options specified)
> would *not* link correctly to a program compiled with gcc in it's
> default settings (threading would be turned *on* in the application,
> and *off* in the lib). The user would have to "know" to define
> BOOST_DISABLE_THREADS in their application.
>
> 2) If threading support is explicitly turned on, it's safe and the
> same as before.
>
> My problem with this is that (1) is what 99% of people actually do in
> practice.

What I had in mind (but failed to express clearly) was that
<threading>multi is the (new) default for GCC >= 3.4.0 while
<threading>single stays the default for GCC < 3.4.0. But I guess this
only works if we have versionized toolsets (e.g. gcc-3_3, gcc-3_4,
etc.), so this is probably not worth the trouble :-(. Sorry for the
noise!

Thanks & Regards,

-- 
Andreas Huber
When replying by private email, please remove the words spam and trap
from the address shown in the header. 
 

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