Thanks for all your help!! Will have a look and play with some options... Sander
On 26 Jul 2017, at 03:05, Ian Lance Taylor <i...@golang.org> wrote: > 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.