From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-12-20 02:45:20
> > When I build my project using the darwin toolset I get the following
> > warning:
> > g++: unrecognized option `-pthread'
> > when building, and the following error when linking:
> > ld: can't locate file for: -lrt
> > I traced the -lrt back to the bottom of the gcc toolset. In the default
> > case of that switch statement, it says:
> > flags gcc OPTIONS <threading>multi : -pthread ;
> > flags gcc FINDLIBS-SA <threading>multi : rt ;
> The same happens to me. Plus, there's one rule missing for building static
> libs. I've attached the relevant patches.
> Volodya: can you please see if these are appropriate and apply them?
I have some concerns about the patch. Am I right that you can have both gnu
gcc (gcc.jam toolset) and apple's gcc (darwin.jam toolset) on Mac OSX? If I
use gnu gcc, should I use "-lrt". If yes, then your patch causes *both* gnu
gcc and apple gcc to not use it, which is bad. If -lrt is not needed for
either compiler, then your patch is fine.
But I don't know the answer to the above question. Do you?
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