3 ms·
Trick question: glibc doesn't support that. Trying to statically link with glibc is a fool's errand.
by kazinator 4y ago
Trick question: glibc doesn't support that.
Trying to statically link with glibc is a fool's errand.
- account42 4y agoglibc 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.