From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9490 invoked by alias); 19 Oct 2012 18:36:54 -0000 Received: (qmail 8008 invoked by uid 48); 19 Oct 2012 18:36:40 -0000 From: "roland at gnu dot org" To: glibc-bugs@sources.redhat.com Subject: [Bug libc/14743] New: clock_gettime et al from -lrt always bring in libpthread Date: Fri, 19 Oct 2012 18:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: roland at gnu dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-10/txt/msg00186.txt.bz2 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.