Boost logo

Boost-Build :

From: Pedro Ferreira (pedro.ferreira_at_[hidden])
Date: 2004-12-19 10:44:43


Hi Arvid,

> 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 ;
>
> 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)

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?

Many thanks,

Pedro
_______________________________________________________________
Pedro Ferreira mailto:pedro.ferreira_at_[hidden]
MOG Solutions http://www.mog-solutions.com

Parque de Ciência e Tecnologia da Maia Tel: +351 22 940 82 24
Rua Eng. Frederico Ulrich, 2650 Fax: +351 22 940 82 01
4470-605 Moreira da Maia
Portugal
 ------=_20041219154443_36313 Content-Type: application/octet-stream; name="darwin.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="darwin.diff"

[Attachment content not displayed.] ------=_20041219154443_36313--


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