8 ms·
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
by throwaway525142 5y ago
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?
- wyldfire 5y agozig also functions as a c and c++ compiler via 'zig cc'.
- saurik 5y agoThe 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...
- zX41ZdbW 5y agoExample: https://github.com/ClickHouse-Extras/sysroot https://github.com/ClickHouse-Extras/sysroot