Re: Having multiple GCC Version at the same time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux