From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 9A4681F9FD for ; Mon, 8 Mar 2021 02:46:38 +0000 (UTC) Received: from localhost ([::1]:57438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJ5un-0001Tm-Ig for normalperson@yhbt.net; Sun, 07 Mar 2021 21:46:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJ5uj-0001Tg-Bu for bug-gnulib@gnu.org; Sun, 07 Mar 2021 21:46:33 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:40504) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJ5uf-0001oa-Lg for bug-gnulib@gnu.org; Sun, 07 Mar 2021 21:46:32 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6E57616008F; Sun, 7 Mar 2021 18:46:26 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id blCQ5fNgCQv4; Sun, 7 Mar 2021 18:46:25 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B582F1600B7; Sun, 7 Mar 2021 18:46:25 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id weFjc3AjcCaR; Sun, 7 Mar 2021 18:46:25 -0800 (PST) Received: from [192.168.1.9] (cpe-23-243-218-95.socal.res.rr.com [23.243.218.95]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 93ABB16008F; Sun, 7 Mar 2021 18:46:25 -0800 (PST) To: Bruno Haible References: <20210303002855.5819-1-eggert@cs.ucla.edu> <14551115.F8Qjx3YMge@omega> <2783771.9LmcWK8fO3@omega> From: Paul Eggert Organization: UCLA Computer Science Department Subject: Re: single-threaded optimizations Message-ID: <19ba1ebf-3a18-cef2-8a89-e9446571201b@cs.ucla.edu> Date: Sun, 7 Mar 2021 18:46:25 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <2783771.9LmcWK8fO3@omega> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@cs.ucla.edu; helo=zimbra.cs.ucla.edu X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gnulib bugs Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" On 3/7/21 1:58 AM, Bruno Haible wrote: > The mbrtowc modules states: >=20 > Link: > $(LIB_MBRTOWC) Thanks for explaining that. Over time Gnulib has evolved and 'tar'=20 hadn't caught up with all those Link: lines. So I just now added=20 $(LIB_ACL), $(LIB_GETRANDOM), $(LIB_HARD_LOCALE), $(LIB_HAS_ACL),=20 $(LIB_MBRTOWC), and $(LIB_SETLOCALE_NULL) to the tar linking instructions= . However, I have a new problem now. Even though 'tar' now defines=20 GNULIB_EXCLUDE_SINGLE_THREAD, GNULIB_MBRTOWC_SINGLE_THREAD,=20 GNULIB_REGEX_SINGLE_THREAD, and GNULIB_WCHAR_SINGLE_LOCALE, 'configure'=20 still unnecessarily arranges for GNU Tar to be linked with -lpthread,=20 because of these lines in src/Makefile: LIB_HARD_LOCALE =3D -lpthread LIB_MBRTOWC =3D -lpthread LIB_SETLOCALE_NULL =3D -lpthread I can work around this unnecessary dynamic dependency for GNU Tar by=20 removing $(LIB_HARD_LOCALE), $(LIB_MBRTOWC) and $(LIB_SETLOCALE_NULL)=20 from the tar linking instructions. But this seems brittle, as these=20 $(LIB_...) macros might expand to something other than a threading=20 library in the future. Is there a better way?