From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28927 invoked by alias); 9 Mar 2004 21:50:20 -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 28920 invoked from network); 9 Mar 2004 21:50:19 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sources.redhat.com with SMTP; 9 Mar 2004 21:50:19 -0000 Received: from hermes.suse.de (Hermes.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id 61D072C5A42; Tue, 9 Mar 2004 22:50:18 +0100 (CET) To: Andrew Cagney Cc: Michael Elizabeth Chastain , gdb@sources.redhat.com, manjo@austin.ibm.com Subject: Re: gdb build using different compiler References: <20040309185341.8027B4B104@berman.michael-chastain.com> <404E2479.6050609@gnu.org> From: Andreas Schwab X-Yow: I guess we can live on his POT FARM in HADES!! Date: Tue, 09 Mar 2004 21:50:00 -0000 In-Reply-To: <404E2479.6050609@gnu.org> (Andrew Cagney's message of "Tue, 09 Mar 2004 15:09:29 -0500") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2004-03/txt/msg00081.txt.bz2 Andrew Cagney writes: >> 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 > > FYI, a possibly better way is: > > ( CC=/opt/tools/gcc/bin/gcc ; export CC ; CXX=/opt/tools/gcc/bin/c++ ; > export CXX ; ..../configure ) Even better: CC=/opt/tools/gcc/bin/gcc CXX=/opt/tools/gcc/bin/c++ ..../configure (althought I'm not sure whether the OP not actually wants CC=/opt/tools/gcc.) Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."