My development machine is running Precise, but some of my target servers are still running Lucid. I'm trying to set up my dev machine so that it can compile c/c++ for both Lucid and Precise. I already ran
aptitude install gcc-4.4 g++-4.4
on my dev machine but that unfortunately installed version 4.4.7 of the compilers where Lucid is running version 4.4.3.
After some googling, I found this:
http://packages.ubuntu.com/lucid/devel/gcc-4.4
which seems to be exactly what I want. Would adding this Lucid package to the Precise source.list
even work considering that this package was not meant for Precise? If so, exactly what url should I add to the source.list file in order to get it?
note: I'm not really looking to compile this from source if I don't have to. I'm not even sure if gcc/g++ 4.4.3 will even solve my problem.
I also acknowledge the possibility that I'm going about this all wrong. Is there a better or simpler way to compile for older versions of linux on Precise?