[llvm-dev] Targeting old glibc

James Y Knight via llvm-dev llvm-dev at lists.llvm.org
Wed Nov 11 13:03:52 PST 2020


On Wed, Oct 28, 2020 at 9:54 AM Alexandre Bique via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hi,
>
> I wonder what is the right way to target an old glibc?
>

The correct way is to compile against a sysroot which has an old glibc
(both headers and libraries!) installed in it, rather than the new glibc.

Anything else you try -- such as everything being recommended in the rest
of the thread -- is an unsupportable hack, and should not be done. Possibly
you can get it to work, for some particular sets of glibc versions, but
there can be no guarantee. (Also, this isn't really a llvm question, it's a
glibc question).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20201111/ea74eba6/attachment.html>


More information about the llvm-dev mailing list