title: How to use 2 different versions of GCC on Linux Ubuntu and force MAKE to use one of them
body: <p>I'm using the last version of Ubuntu which come with the gcc 4.4.5 version. I need to recompile a program that was not written by me and that can be only compiled with an older version of gcc like the 4.0. I managed to configure this older version and used a prefix during the install process so that my old gcc version is in the /opt/gcc-4.0.1/bin. I have tried to create a symlink using <code>ln -s /opt/gcc-4.0.1/bin/gcc gcc</code>. But when I invoke <code>gcc -v</code> I still get the result <code>gcc version 4.4.5</code>. To compile my program which come already with a makefile, if I do <code>make</code>, it's still using the new version of gcc. How could I tell <code>make</code> to use the old version? </p>