Boost logo

Boost-Build :

From: Pedro Ferreira (pedro.ferreira_at_[hidden])
Date: 2004-12-20 05:02:38


Hi Volodya,

Em 20 Dec 2004, às 07:45, Vladimir Prus escreveu:

>>> 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?

I'm not sure but I don't see such a lib in my system. AFAIK, it's part
of glibc.
Would gcc install it?

Anyway, can darwin.jam override that flag? It would be safer...

Regards,

Pedro

 


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