Using multiple compilers

Mike Stump mrs@apple.com
Thu Jul 31 04:42:00 GMT 2003


On Wednesday, July 30, 2003, at 03:46 PM, J.B. Brown wrote:
> I have a question regarding multiple builds of GCC on the same machine.

configure --prefix=$HOME/packages/gcc-3.3 && make && make install

> However, I am not
> sure how to tell programs (namely compilers and make environments) to 
> use
> the newly built 3.3 include files and libraries, instead of the old 2.9
> libraries.

You need not do anything, other than:

PATH=$HOME/packages/gcc-3.3/bin:$PATH
LD_LIBRARY_PATH=$HOME/packages/gcc-3.3/lib:$LD_LIBRARY_PATH


This isn't the best list for such questions.  This should be covered in 
the install manual.



More information about the Gcc mailing list