This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Best way of compiling applications to run on older linux distros
- From: Andrew Haley <aph at redhat dot com>
- To: tom dot quarendon at teamwpc dot co dot uk
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 04 Nov 2008 11:06:01 +0000
- Subject: Re: Best way of compiling applications to run on older linux distros
- References: <49102B2D.1080800@teamwpc.co.uk>
Tom Quarendon wrote:
> We have a requirement for our application to run on Centos 4, but
> currently we compile on Fedora 9 with gcc 4.3.
> My question is what is the best way of compiling an application to
> target older linux distros? Doesn't seem to be any common wisdom that I
> can find on the web, but maybe I'm searching for the wrong thing.
Install an old linux distro. They're still available.
> Obvisously one solution is to compile on Centos 4, using a gcc such as 3.4.
> However I'd like to use the latest gcc is I can.
Don't. if you want to run on Centos 4, build on Centos 4.
Andrew.