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.


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


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