This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb build using different compiler
- From: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: gdb at sources dot redhat dot com, manjo at austin dot ibm dot com
- Date: Tue, 9 Mar 2004 13:53:41 -0500 (EST)
- Subject: Re: gdb build using different compiler
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