Boost logo

Boost :

From: Boris Gubenko (Boris.Gubenko_at_[hidden])
Date: 2007-02-27 14:32:09


Prashant Thakre wrote:
> Actually, I was refering to the *-mt* flag which is hardcoded in
> acc.jam i.e. there is no way to build single threaded libraries on
> HP-UX. Command line is always: "aCC -mt +DD64". Please see acc.jam.

I know that -mt and +DD64 are hard-coded in acc.jam, I think, we discussed
it before. Making them features is on my list, but not as a high-priority
task. Certainly, not before HP-UX/aCC6 is completely green. Of course, any
help is welcome.

> From the link:
> [John] If so then BOOST_HAS_THREADS should get turned on
> automatically when building in multithread-mode *only* in
> boost/config/suffix.hpp.
>
> This fails to happen if I remove the hardcoded *-mt* flag and instead
> instruct bjam to build both sinlge and multi threaded versions of the
> libraries.
> Problems with bjam probably ? Seems like it's not passing *-mt* flag
> to the compiler for multi-threaded build.

Volodya can give you definitive answer.

Thanks,
  Boris

----- Original Message -----
From: "Prashant Thakre" <prashant.thakre_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Tuesday, February 27, 2007 2:12 PM
Subject: Re: [boost] [thread] Patch for boost/config/platform/hpux.hpp

> On 28/02/07, Boris Gubenko <Boris.Gubenko_at_[hidden]> wrote:
>> As John said: compiling -mt (which results in _REENTRANT and _RW_MULTI_THREAD
>> macros being set) is the *only* way to ensure thread safety.
>
> Actually, I was refering to the *-mt* flag which is hardcoded in
> acc.jam i.e. there is no way to build single threaded libraries on
> HP-UX. Command line is always: "aCC -mt +DD64". Please see acc.jam.
>
>> See
>> http://article.gmane.org/gmane.comp.lib.boost.devel/147160/
>> for more details.
> From the link:
> [John] If so then BOOST_HAS_THREADS should get turned on
> automatically when building in multithread-mode *only* in
> boost/config/suffix.hpp.
>
> This fails to happen if I remove the hardcoded *-mt* flag and instead
> instruct bjam to build both sinlge and multi threaded versions of the
> libraries.
> Problems with bjam probably ? Seems like it's not passing *-mt* flag
> to the compiler for multi-threaded build.
>
>> Thanks,
>> Boris
>>
>
> --
> regards,
> Prashant Thakre
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk