Originally Posted by plafratt
I have two machines: one with Ubuntu 12.04 and another with Ubuntu 10.04. I want to compile on the 12.04 machine for the 10.04 machine, but I am running into the problem that the code compiled on 12.04 is looking for glibc 2.15, but 10.04 has glibc 2.11.1.
Is there any straightforward way to compile for Ubuntu 10.04 on 12.04?
("Straightforward" meaning a way that doesn't require that I be a compiler guru.)
The simplest way is to compile for Ubuntu 10.04 on Ubuntu 10.04. Or earlier.
If you for some reason can't/won't compile here you can try to compile on 12.04 in usual way
and then use statifier (http://statifier.sf.net
) to convert your dynamically linked executable into portable one.
Another options is Ermine (http://magicErmine.com
) Statifier is free, but don't like systems with memory randomization.
Ermine is commercial, but able handle it.