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