4 ms·
Crystal supports static linking with `--static`, unfortunately glibc and openssl don't like static linking, so it turns out to be easier to do in an alpine linu
by RX14 8y ago
Crystal supports static linking with `--static`, unfortunately glibc and openssl don't like static linking, so it turns out to be easier to do in an alpine linux chroot/container/etc which uses musl instead of glibc. Crystal is in the alpine linux repositories as of 3.8, so this should be now a lot easier.
If someone wants to generate some good tooling around this workflow, it'd be greatly appreciated.
- yxhuvud 8y agoI wonder if it is possible to do something that staticly link everything except the few libraries that misbehave.
- ricardobeat 8y agoThere isn't much else left to link - iirc openssl, glibc, libevent, libpcre are all it needs.