From patchwork Tue Jul 2 14:43:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 33512 Received: (qmail 32760 invoked by alias); 2 Jul 2019 14:43:20 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 32749 invoked by uid 89); 2 Jul 2019 14:43:19 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=H*f:sk:mvmsgro, HX-Languages-Length:872, H*i:sk:mvmsgro X-HELO: mx1.redhat.com From: Florian Weimer To: Andreas Schwab Cc: libc-alpha@sourceware.org Subject: Re: malloc programs independently depend on libpthread References: <87muhw1pxt.fsf@oldenburg2.str.redhat.com> Date: Tue, 02 Jul 2019 16:43:15 +0200 In-Reply-To: (Andreas Schwab's message of "Tue, 02 Jul 2019 16:33:33 +0200") Message-ID: <87ef381oqk.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 * Andreas Schwab: > On Jul 02 2019, Florian Weimer wrote: > >> What's the best way to solve this? Move memusagestat to a different >> subdirectory which comes after nptl? > > Can we make malloc depend on nptl? Ah, I had not considered that mechanism because I had forgotten about it. What about this? It appears to fix the build order. Since it works on Linux without htl, I expect it will work on Hurd with nptl, too. And nscd/Depend does the same thing today. 2019-07-02 Florian Weimer [BZ #24757] * malloc/Depend: Add nptl and htl, due to potential indirect libpthread dependency of memusagestat. Thanks, Florian diff --git a/malloc/Depend b/malloc/Depend index 910c6d9152..f5e248047c 100644 --- a/malloc/Depend +++ b/malloc/Depend @@ -1 +1,3 @@ dlfcn +nptl +htl