External Publication
Visit Post

[Pre-RFC] target-glibc: Proposal to add native support for GLIBC versions for the -gnu targets

Rust Internals [Unofficial] May 6, 2026
Source

nikkon-dev:

This is quite a trivial task. A standalone binary may either automatically download the required glibc version sources or use whatever sources the user provides (not from the linked libc.so.6 on your system).

Oh, I was thinking of something that would take my existing libc.so.6 and make the stub directly from it. Building from sources seems complicated for cross-compilations, but I understand this is not a trivial problem that is guaranteed to be amenable to such "shortcuts".

nikkon-dev:

No. This is way outside of the scope of this RFC. Moreover, I do not know of any success stories involving libstdc++/libc++ from languages other than C++. If it were possible with reasonable effort, Rust could automatically use libraries that expose API as C++ classes with std::* types. In other words, why would you even need something like that?

Yeah, I suppose that would be something for one of the C++ binding crates to work with rather than rustc itself.

Discussion in the ATmosphere

Loading comments...