Comment #421

Kaushal Modi wrote the following reply to https://scripter.co/nim-deploying-static-binaries/:

@teroz

After I wrote this post, a lot more stuff was added to the "hello_musl" project with help from few collaborators in Nim community.

If you look at the *libressl* target, I am [dealing with the `libcrypto` too](https://github.com/kaushalmodi/hello_musl/blob/53141367edca9ce0f4c984c7bf5dc3251d9157df/config.nims#L80). Note that I am using statically build `libcrypo.a` and not `libcrypto.so`.

With the linked `config.nims` above, you can run `nim musl -d:libressl foo.nim`.

I hope that helps.

Reply to this comment