top | item 29539185

(no title)

throwaway525142 | 4 years 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?

discuss

order

saurik|4 years ago

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...

wyldfire|4 years ago

zig also functions as a c and c++ compiler via 'zig cc'.