|
Boost : |
From: John Maddock (john_at_[hidden])
Date: 2007-02-27 13:28:51
Prashant Thakre wrote:
> Hi,
> On HP-UX for toolset *acc*(aCC 6.13) Boost.Threads fails to build
> without the hardcoded *-mt* flag in
> RC_1_34_0/tools/build/v2/tools/acc.jam for following actions:
> 1.acc.link bind NEEDLIBS
> 2.acc.link.dll bind NEEDLIBS
> 3.acc.compile.c
> 4.acc.compile.c++
>
> Below mentioned patch defines the macro "BOOST_HAS_THREADS" in
> boost/config/platform/hpux.hpp for toolset *acc* and does away with
> the necessity of having to hardcode *-mt* flag.
I'm wary of that, is the compiler *and* std lib really thread safe without
this? Looking at the docs here
http://docs.hp.com/en/8759/options.htm#opt-mt it seems that using -mt is the
only sure-fire way to ensure thread safety throughout.
John.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk