From 47e7b2a125208c72a692191cdf3916559ab5390d Mon Sep 17 00:00:00 2001 From: evilsocket Date: Thu, 21 Feb 2019 13:37:10 +0100 Subject: [PATCH] fix: not using pkg-config for libusb in order to compile on android --- vendor/github.com/google/gousb/libusb.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vendor/github.com/google/gousb/libusb.go b/vendor/github.com/google/gousb/libusb.go index 2af2dacb..2429d43a 100644 --- a/vendor/github.com/google/gousb/libusb.go +++ b/vendor/github.com/google/gousb/libusb.go @@ -24,7 +24,8 @@ import ( ) /* -#cgo pkg-config: libusb-1.0 +#cgo LDFLAGS: -lusb-1.0 +#cgo CFLAGS: -I/usr/include/libusb-1.0 #include int gousb_compact_iso_data(struct libusb_transfer *xfer, unsigned char *status);