Building for older systems

Paul Pluzhnikov ppluzhnikov@google.com
Sun Nov 29 16:34:00 GMT 2015


On Sun, Nov 29, 2015 at 7:02 AM, Carlos O'Donell <carlos@redhat.com> wrote:
> 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.

Using --sysroot often requires building your own binutils (because
system/native ld defaults to no sysroot support, or at least did in
the past).

The other ways to achieve "building against old glibc" are obviously
build on an old system, or build in a chroot.

In past life I used to build Linux binaries that would run
*everywhere* by building inside a VM running RedHat 6.2.

-- 
Paul Pluzhnikov



More information about the Libc-help mailing list