Open cruvie opened 8 months ago
Duplicate: https://github.com/davidbyttow/govips/issues/339
But the problem remains - it seems this is not statically buildable. This is a pitty as a lot of golang users really want to compile it down to one single statically binary to place it into a docker scratch container for additional security and less overhead.
I may be mistaken, but one of the reasons for dynlinking is the licence. Libvips is LGPL, while this package is MIT. With static linking, all software that uses this package would automatically turn into LGPL software. There are probably technical reasons, too. But as I can see, libvips language bindings are usually MIT or similar licenced.
It would be useful to build with fully static link, is there any way I can do to achive it? I tried the following cmd, but get some errors.