On Sat, Jul 22, 2017 at 12:57 PM, Sander van Harmelen <san...@xanzy.io> wrote:
>
> Ok, I managed to get it compiled by first cross compiling libusb and then 
> pointing to it using the linker flags you suggested. So thank you very much, 
> I can now compile a binary that works on the target device :)
>
> I do have one additional question… Is it possible to make the resulting 
> binary statically linked, just as standard Go binaries are? Is isn’t that 
> possible?

It should be possible, but it kind of depends on your C toolchain.
The basic idea is
    go install -ldflags=-extldflags=-static

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to