From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 74366 invoked by alias); 19 Sep 2017 22:01:50 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 74343 invoked by uid 89); 19 Sep 2017 22:01:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:810, flew, Director, director X-HELO: zmcc-5-mx.zmailcloud.com Received: from zmcc-5-mx.zmailcloud.com (HELO zmcc-5-mx.zmailcloud.com) (52.201.171.122) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 19 Sep 2017 22:01:48 +0000 Received: from zmcc-5-mta-1.zmailcloud.com (127.37.197.104.bc.googleusercontent.com [104.197.37.127]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zmcc-5-mx.zmailcloud.com (Postfix) with ESMTPS id 7D6CA404DB; Tue, 19 Sep 2017 17:05:09 -0500 (CDT) Received: from zmcc-5-mta-1.zmailcloud.com (localhost [127.0.0.1]) by zmcc-5-mta-1.zmailcloud.com (Postfix) with ESMTPS id 64E3AC35DE; Tue, 19 Sep 2017 17:01:46 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by zmcc-5-mta-1.zmailcloud.com (Postfix) with ESMTP id 57991C35DB; Tue, 19 Sep 2017 17:01:46 -0500 (CDT) Received: from zmcc-5-mta-1.zmailcloud.com ([127.0.0.1]) by localhost (zmcc-5-mta-1.zmailcloud.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id hcajfZE7ZgxT; Tue, 19 Sep 2017 17:01:46 -0500 (CDT) Received: from [192.168.1.204] (unknown [83.136.45.31]) by zmcc-5-mta-1.zmailcloud.com (Postfix) with ESMTPSA id A8B6DC3599; Tue, 19 Sep 2017 17:01:45 -0500 (CDT) Subject: Re: dependency list for static libraries To: Joseph Myers Cc: binutils@sourceware.org References: <53b8973b-40a4-2550-3307-66d7f13707d5@symas.com> From: Howard Chu Message-ID: <64fe82bd-9c00-b232-98d2-f46182fb16ba@symas.com> Date: Tue, 19 Sep 2017 22:01:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0 SeaMonkey/2.53a1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00170.txt.bz2 Joseph Myers wrote: > You can install a linker script under a .a file name to achieve this > effect. On x86_64, glibc's libm.a now looks like: > > /* GNU ld script > */ > OUTPUT_FORMAT(elf64-x86-64) > GROUP ( /usr/lib64/libm-2.26.90.a /usr/lib64/libmvec.a ) Thanks for the suggestion, but that still means introducing additional/auxiliary files, so it has much the same drawback as libtool files. I also find this particularly gross because it breaks the principle of least surprise; when I see a *.a file I expect ar, nm, and ranlib to work on it. I'm kind of shocked that such a solution ever flew. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/