Multiple Compiler Versions One Machine
Hi All,
My company has deployment rollout needs which require me to work with different versions of the Sun Studio C++ Compiler. We need to upgrade to Sun Studio 10 C++ Version 5.7 but yet I still need to work with an older Sun C++ Compiler and older versions of certain shared libraries like libCstd.so . My question is how to deal with multiple versions of shared libraries on ONE system.
I am linking to "/usr/lib/ libCstd.so.1". The install directory /opt/SUNWspro/lib DOES NOT HAVE the file "libCstd.so", it only has symbolic links as /opt/SUNWspro/lib/libCstd.so -> /usr/lib/..
If I install another version of Sun Studio C++ into a different directory and it puts libCstd.so over in /usr/lib, it will overwrite the previous libCstd. Our production env has the older shared libraries and for production support work, I NEED TO COMPILE, LINK, and TEST WITH SAME LIBRARIES as they have. But for future release, I need to use C++ 5.7 and I have ONE SunBlade to work with.
If the install always puts libCstd.so in /usr/lib and sets up sym links, how can you have older shared lib versions on ONE box?
Sun has extensive documentation on "Supporting Multiple Compiler Versions" but I cannot find anything that addresses this issue..
Do I need to manually archive them prior to new compiler install and overide with LD_LIBRARY_PATH? It would be nice if install placed additional libCstd.so file somewhere under /opt/SUNWspro/.. instead of only in /usr/lib..
I greatly appreciate any advice.
Joe

