Having multiple GCC Version at the same time
Grigory Zagorodnev
grigory_zagorodnev@linux.intel.com
Mon Feb 27 10:32:00 GMT 2006
Olivier Delannoy wrote:
> Hello,
> I am trying to have various GCC environment in parallel to make some
You can completely separate two GCC environments alternating
installation root with --prefix=PREFIX option of configure script. Thus
you can switch between configurations overriding PATH and
LD_LIBRARY_PATH like this:
PATH=$PREFIX/bin:$PATH
LD_LIBRARY_PATH=$PREFIX/lib64:$LD_LIBRARY_PATH
LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH
Otherwise you can use same installation prefix for all configurations
and switch between compilers using '-V_version_' option of gcc driver.
> environment. Does C libraries have to be available for the various
> compiler version ? Does C++ libraries have to be available for the
> various compiler version ?
Yes.
- Grigory
More information about the Gcc-help
mailing list