Skip to content

Commit

Permalink
usb: use cgos pkg-config support
Browse files Browse the repository at this point in the history
  • Loading branch information
ebfe authored and hanwen committed Oct 15, 2013
1 parent 242bf82 commit bb3f0c2
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions usb/usb.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,7 @@

package usb

/* the following flags may need adjusting for your system. Use
pkg-config to find out the right values.
$ pkg-config --cflags libusb-1.0
-I/usr/include/libusb-1.0
$ pkg-config --libs libusb-1.0
-L/lib64 -lusb-1.0
*/

// #cgo LDFLAGS: -L/lib64 -lusb-1.0
// #cgo CFLAGS: -I/usr/include/libusb-1.0
// #cgo pkg-config: libusb-1.0
// #include <libusb.h>
import "C"
import (
Expand Down

0 comments on commit bb3f0c2

Please sign in to comment.