[PATCH, v3] Potential solution to librt issue.

Paolo Bonzini bonzini@gnu.org
Fri Jul 25 10:14:00 GMT 2008


Ralf Wildenhues wrote:
> Hello Paolo,
> 
> I see you have a way to solve this using --as-needed.  What do you
> intend to do on systems with non-GNU ld, which doesn't have this?
> Or am I missing something and the problem is not present or important
> there?

Solaris uses a -lposix4 and it seems weird that it implies -pthread. 
So, it is not affected.

Don't know about FreeBSD, but it has GNU ld doesn't it?

If other systems need -lrt, and -lrt implies -pthread on those systems 
too, the course of action will need to be evaluated case-by-case.			

I don't know if long term it is possible for Linux to provide a 
libposix4 library that includes librt functionality not requiring 
threads; or to move that functionality to libc.

Paolo



More information about the Libstdc++ mailing list