This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug libc/14743] New: clock_gettime et al from -lrt always bring in libpthread


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.


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