From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106294 invoked by alias); 1 Jun 2015 14:39:29 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 106249 invoked by uid 89); 1 Jun 2015 14:39:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Mon, 01 Jun 2015 14:58:00 -0000 From: Joseph Myers To: Andreas Schwab CC: Subject: Re: [PATCH] memusagestat: use local glibc when linking [BZ #18465] In-Reply-To: <87y4k5ozk1.fsf@igel.home> Message-ID: References: <1433013240-3040-1-git-send-email-vapier@gentoo.org> <87wpzpakcu.fsf@igel.home> <20150531045618.GE4496@vapier> <87y4k5ozk1.fsf@igel.home> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2015-06/txt/msg00013.txt.bz2 On Sun, 31 May 2015, Andreas Schwab wrote: > Mike Frysinger writes: > > > On 30 May 2015 22:20, Andreas Schwab wrote: > >> Mike Frysinger writes: > >> > >> > The memusagestat is the only binary that has its own link line which > >> > causes it to be linked against the existing installed C library. It > >> > has been this way since it was originally committed in 1999, but I > >> > don't see any reason as to why. > >> > >> Probably because $(objpfx)memusagestat.o is compiled specially. > > > > how so ? > > # The configure.ac check for libgd and its headers did not use $SYSINCLUDES. > # The directory specified by --with-headers usually contains only the basic > # kernel interface headers, not something like libgd. So the simplest thing > # is to presume that the standard system headers will be ok for this file. > $(objpfx)memusagestat.o: sysincludes = # nothing One option is splitting out memusagestat and other installed executables not depending on glibc internals or required by the glibc testsuite into a separate package, built using an installed C library, as I suggested in and . -- Joseph S. Myers joseph@codesourcery.com