This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]