Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Particular to the c library? Because an "ldd" on the hello world listed quite a few libs which all worked fine with a static build.


openssl and libz are particularly fussy


I could definitely see openssl being tricky (libz not so much, but I might very well be naive here) - but how does changing the libc help with either?


glibc has some plugins which make it not easy to statically link. Musl doesn't have that. And alpine compiles openssl etc. with a config amenable to static linking. It's all about distro choices.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: