
27 Feb
2007
27 Feb
'07
6:28 p.m.
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.