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.
-d:useLibzipSrc
源代码,您似乎可以通过传递-d:useLibzipSrc
来做到这-d:useLibzipSrc
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.