This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/14743] New: clock_gettime et al from -lrt always bring in libpthread
- From: "roland at gnu dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 19 Oct 2012 18:36:40 +0000
- Subject: [Bug libc/14743] New: clock_gettime et al from -lrt always bring in libpthread
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14743
Bug #: 14743
Summary: clock_gettime et al from -lrt always bring in
libpthread
Product: glibc
Version: 2.17
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: unassigned@sourceware.org
ReportedBy: roland@gnu.org
CC: drepper.fsp@gmail.com
Classification: Unclassified
Just using clock_gettime in a dynamically linked program requires -lrt.
librt.so depends on libpthread.so, so such programs wind up loading libpthread
even if they have no need for it. This enables libstdc++ locking code and the
like, slowing down single-threaded programs that only wanted clock_* calls.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.