gdb build using different compiler

Michael Elizabeth Chastain mec.gnu@mindspring.com
Tue Mar 9 18:53:00 GMT 2004


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



More information about the Gdb mailing list