I'm trying to compile a C++11 project on a bunch of old machines with old kernels. They're running CentOS 6.2, 6.3 Alt Linux 4.1. Others are unknown but similarly old. The machines won't let me install a newer version of GCC. 4.4 is the max they can run, and rewriting the project isn't an option.
I somehow managed to build GCC 4.6 locally on one machine, and used it to compile my project, but I don't want to repeat that on every machine. Is there a painless way to compile or run the code on all the machines?