▲ | jmmv 3 days ago | |||||||||||||||||||||||||||||||
You need that glibc on the target system, and glibc doesn’t like static linking. How do you ship the built binary? | ||||||||||||||||||||||||||||||||
▲ | lokar 3 days ago | parent | next [-] | |||||||||||||||||||||||||||||||
You include the target glibc as part of your toolchain And, I always prefer to actually pick my glibc independently from the host os and ship it with the binary (generally in an OCI image). This way you can patch/update the host without breaking the service. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
▲ | throwaway2046 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
Is musl not an option? It's best to avoid glibc altogether if possible. | ||||||||||||||||||||||||||||||||
▲ | prpl 3 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||
no, you just need a compatible starlit/glibc. you pick an old version (e.g. RHEL8) or otherwise compile with multiple tool chains if you need newer glibc features |