News for hackers. Stuff that matters.
Re:Show HN: A 166 KB file for cross compiling glibc for any ... by throwaway525142 on Monday December 13, 2021 @08:05AM (#29539185)
What does "targeting any glibc version" mean? Is it the solution to the problem where you have to compile on an ancient Debian version to produce a binary that works on all Linux distributions because it otherwise links to too-new symbol versions in glibc?

Can I use that outside of Zig, for compiling C++ code?

Re:Show HN: A 166 KB file for cross compiling glibc for any ... by saurik on Monday December 13, 2021 @09:28AM (#29539853)
The correct solution for that is to just cross compile to whatever older CPU you want and target a sysroot that has a base image of whatever older glibc you wanted: you don't need to actually compile on the older device...
Re:Show HN: A 166 KB file for cross compiling glibc for any ... by zX41ZdbW on Monday December 13, 2021 @02:50PM (#29543653)
Re:Show HN: A 166 KB file for cross compiling glibc for any ... by wyldfire on Monday December 13, 2021 @08:42AM (#29539481)
zig also functions as a c and c++ compiler via 'zig cc'.