News for hackers. Stuff that matters.
Re:Cross-compiling binaries for Windows is easier than build... by kazinator on Saturday June 18, 2022 @10:22PM (#31795564)
Trick question: glibc doesn't support that.

Trying to statically link with glibc is a fool's errand.

Re:Cross-compiling binaries for Windows is easier than build... by account42 on Tuesday June 21, 2022 @04:10AM (#31821510)
glibc doesn't support static linking, but you can fully static link with another libc if that is what you wanted to do.

Not that it is needed for forward-compatible Linux binaries since newer glibc versions are backwards compatible so dynamically linking the oldest one you want to support works fine. Would be nice if glibc/gcc supported targetting older versions directly without having to have an older copy installed but that is a convenience issue.