Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2007-03-23 00:44:54


on Fri Mar 23 2007, "Boris Gubenko" <Boris.Gubenko-AT-hp.com> wrote:

> While we are dealing with HP-UX - specific code in python.jam, can
> you do me a favour and remove 'pthread' on line 602:
>
> case hpux : return pthread rt ;
>
> It was me who added 'pthread' in the previous incarnation of python.jam:
>
> case HPUX :
> {
> extra-libs = pthread rt ;
> }
>
> and it was a mistake. As stated in
>
> <http://docs.hp.com/en/8759/options.htm#opt-mt>
>
> the aC++ driver takes care of linking against pthread library when
> appropriate. In the best case, explicit -lpthread is redundant. In
> the worst case, if the program was compiled without -mt, forcing
> pthread to the link is illegal and may lead to runtime error:
>
> aCC runtime: Use of "-mt" must be consistent during both compilation
> and linking.
>
> If you could remove this erroneous 'pthread' on line 602, it would be
> great. It is a safe change because it only affects HP-UX platform.

Is GCC available on HPUX and if people use gcc there does the same
logic apply? Or do I need

   <toolset>gcc:<library>pthread

??

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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