From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19066 invoked by alias); 9 Mar 2004 18:53:32 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 19045 invoked from network); 9 Mar 2004 18:53:31 -0000 Received: from unknown (HELO tisch.mail.mindspring.net) (207.69.200.157) by sources.redhat.com with SMTP; 9 Mar 2004 18:53:31 -0000 Received: from user-119a90a.biz.mindspring.com ([66.149.36.10] helo=berman.michael-chastain.com) by tisch.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1B0mM5-00080d-00; Tue, 09 Mar 2004 13:53:29 -0500 Received: by berman.michael-chastain.com (Postfix, from userid 502) id 8027B4B104; Tue, 9 Mar 2004 13:53:41 -0500 (EST) To: gdb@sources.redhat.com, manjo@austin.ibm.com Subject: Re: gdb build using different compiler Message-Id: <20040309185341.8027B4B104@berman.michael-chastain.com> Date: Tue, 09 Mar 2004 18:53:00 -0000 From: mec.gnu@mindspring.com (Michael Elizabeth Chastain) X-SW-Source: 2004-03/txt/msg00072.txt.bz2 Hi Manoj, > How do I build gdb 6.1 using a compiler in /opt/tools/gcc instead of > /usr/bin/gcc? Put /opt/tools/gcc/bin in your $PATH variable in front of /usr/bin. PATH=/opt/tools/gcc/bin:$PATH export PATH Then do this to make sure you're getting the gcc you want: gcc --version You might have to tweak "/opt/tools/gcc/bin" to get the result you want. That's all there is to it! Michael C