Hacker News new | ask | show | jobs
by hctaw 1873 days ago
You need to compile a static executable (not with static libraries, there's a subtle difference). The flags depend on your compiler.

If you're on Linux, musl libc and musl-tools are useful for dealing with this reliably.

1 comments

> You need to compile a static executable

This is functionally impossible on $ISA-linux-gnu, because the glibc developers refuse to provide a working C standard library (libc.a).

> musl libc and musl-tools are useful

Sure, but if the software worked (/reliably) with musl, we'd be using that already.