This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, v3] Potential solution to librt issue.


On Thu, Jul 24, 2008 at 1:24 AM, Paolo Bonzini <bonzini@gnu.org> wrote:
>
>> If I'm reading this right, libstdc++ now requires librt to link.
>
> I'm afraid you are.
>
>> First of all, I think this will g++ -static.  The compiler knows about
>> the previous libm dependency, but not the new librt dependency.
>
> Ok, this is a minor problem.
>
>> Second of all, linking in librt on Linux also requires libpthread;
>> this is going to make all C++ programs link in libpthread, which
>> activates locking in glibc (a major overhead for single-threaded
>> programs).
>
> But this is not.  It might even be a no-no for using clock_gettime AFAICT.
>  Where is the pointer to the "librt issue"?  I didn't find it in the
> libstdc++ archives.

Starts about third post in:
http://www.nabble.com/Arithmetic-type-emulator-helper-class-for-testcases.-td18403099.html

The only issue I see with removing clock_gettime is that I'm not sure
if posix systems have other options for a monotoic clock.

Chris

>
> Paolo
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]