Reputation: 950
I'm writing a program in Nim using the zip/zipfiles
library, which relies on libzip(|2|4).dylib.
My question is primarily for macOS, but guidance for Linux is also welcome.
How can I compile it to have a statically linked binary to be easier to distribute?
Thanks Andrea
EDIT:
Apparently something like https://nim-lang.org/docs/nimc.html#dynliboverride should do.
Specifically for this library, -p:useLibzipSrc
also does.
Upvotes: 2
Views: 722
Reputation: 56
Reading through the source it seems like you may be able to do this by passing -d:useLibzipSrc
Upvotes: 4