This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Building for older systems
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Michael Eager <eager at eagerm dot com>, libc-help at sourceware dot org
- Date: Sun, 29 Nov 2015 10:02:27 -0500
- Subject: Re: Building for older systems
- Authentication-results: sourceware.org; auth=none
- References: <565B0993 dot 7040202 at eagerm dot com>
On 11/29/2015 09:20 AM, Michael Eager wrote:
> Any solutions to building for an older glibc?
There is only one supported way to do what you want.
You need to build against an old sysroot e.g. --sysroot option
in gcc. With the old system root installed in some path to allow
you to compile against it.
It is not supported for you to build against a new glibc
and run against an older runtime. That would be forwards
compatibility, which we don't guarantee.
Cheers,
Carlos.