From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18797 invoked by alias); 28 Nov 2013 09:36:41 -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 18783 invoked by uid 89); 28 Nov 2013 09:36:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,RDNS_NONE,SPAM_SUBJECT1,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 28 Nov 2013 09:36:39 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rAS9aV2f016860 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 28 Nov 2013 04:36:32 -0500 Received: from zebedee.pink (ovpn-113-176.phx2.redhat.com [10.3.113.176]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id rAS9aTNI001379; Thu, 28 Nov 2013 04:36:30 -0500 Message-ID: <52970E9D.6040305@redhat.com> Date: Thu, 28 Nov 2013 10:30:00 -0000 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131028 Thunderbird/17.0.10 MIME-Version: 1.0 To: Johannes Lorenz CC: gcc-help@gcc.gnu.org Subject: Re: References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00222.txt.bz2 On 11/27/2013 08:42 PM, Johannes Lorenz wrote: >> I didn't say that you should compile a new glibc. I assumed that was >> your goal. It is an eccentric thing to be doing. > > Ok, so one possibility would be to use a new gcc + ld on an old > glibc, correct? Yes. I'd use the system's binutils if they work. > What would be the correct way to do that? If a library is found in > the local installation, it was from our gcc (e.g.: > ~/local/lib/gcc...), so we use it, but if it was not found, get it > from the system, i.e. /usr/lib. The same for the headers. How to > tell gcc to behave like that? That's what it does by default. Just configure, build, and install GCC, and programs will use its libraries. You might need to use ldconfig to configure the system to use the new libaries, but this needs to be done with great care. It's better to set a default LD_LIBRARY_PATH. Andrew.