Boost logo

Boost-Build :

Subject: Re: [Boost-build] pthreads & boost build
From: Bruno Santos (bsantos_at_[hidden])
Date: 2011-07-01 12:55:07


Sex, 2011-07-01 às 12:11 +0200, Daniel escreveu:
> Hi,
>
> I'm using the boost build tool for a quite while now, but this time I
> cannot help myself and even google does not seem to find the right
> answer. I want to link against the pthread lib. Using gcc I would do
> something like: g++ someSource.cpp -pthread.
>
> How to do this using bjam??
>

In the requirements pass

<linkflags>-lpthread

or conditionally

<target-os>linux:<linkflags>-lpthread


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