Boost logo

Boost-Build :

From: Arvid Norberg (c99ang_at_[hidden])
Date: 2004-12-19 06:49:49

When I build my project using the darwin toolset I get the following

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 ;

If I remove those lines, both the warning and the error goes away.

I'm using the latest released version from source forge.

$ bjam --version
Boost.Build V2 (Milestone 10)
Boost.Jam 03.01.10

$ g++ -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1671)

Arvid Norberg

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at