From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26180 invoked by alias); 17 Oct 2013 10:42:25 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 26169 invoked by uid 89); 17 Oct 2013 10:42:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 17 Oct 2013 10:42:24 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r9HAgMvk012318 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 17 Oct 2013 06:42:23 -0400 Received: from zebedee.pink (ovpn-113-93.phx2.redhat.com [10.3.113.93]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r9HAgIX6013572; Thu, 17 Oct 2013 06:42:20 -0400 Message-ID: <525FBF0A.6010106@redhat.com> Date: Thu, 17 Oct 2013 10:42:00 -0000 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130912 Thunderbird/17.0.9 MIME-Version: 1.0 To: net_robber CC: "Anandkumar, CB IN BLR STS" , "flameroc@gmail.com" , "gcc-help@gcc.gnu.org" Subject: Re: how could make gcc link static library default? References: <80070575041F1A43B43673DA71C5B0BCBBE2B2EBBC@INBLRK77M1MSX.in002.siemens.net> <80070575041F1A43B43673DA71C5B0BCBBE2B2EC65@INBLRK77M1MSX.in002.siemens.net> <80070575041F1A43B43673DA71C5B0BCBBE2B2EE2C@INBLRK77M1MSX.in002.siemens.net> <525FA80E.5030704@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00065.txt.bz2 On 10/17/2013 10:11 AM, net_robber wrote: > how to get that information Please don't top-post on the GCC lists. I don't understand your question. What does "how to get that information" mean? It's in the file /usr/lib/libc.so. > On Thu, Oct 17, 2013 at 5:04 PM, Andrew Haley wrote: >> On 10/17/2013 07:57 AM, net_robber wrote: >>> how to make it the first priority give to static, and then, in case >>> static does not exist it uses dynamic. >> >> Have a look at /usr/lib/libc.so on a GNU/Linux system of your choice. >> >> Here it is on mine: >> >> /* GNU ld script >> Use the shared library, but some functions are only in >> the static library, so try that secondarily. */ >> OUTPUT_FORMAT(elf32-i386) >> GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld-linux.so.2 ) ) >> >> Andrew. >>