Skip to content

Commit 17f5134

Browse files
committed
properly include the lib dirs.
1 parent 314e740 commit 17f5134

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

main.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919
package main
2020

2121
/*
22-
#cgo CPPFLAGS: -DHAVE_UNISTD_H -DHAVE_NANOSLEEP -DHAVE_ERR -I. -Idfu-util-0.11/src -I/usr/include/libusb-1.0
23-
#cgo CFLAGS: -DHAVE_UNISTD_H -DHAVE_NANOSLEEP -DHAVE_ERR -I. -Idfu-util-0.11/src -I/usr/include/libusb-1.0
24-
#cgo LDFLAGS: -lusb-1.0
22+
#cgo CPPFLAGS: -DHAVE_UNISTD_H -DHAVE_NANOSLEEP -DHAVE_ERR -I. -Idfu-util-0.11/src -I/usr/local/include/libusb-1.0
23+
#cgo CFLAGS: -DHAVE_UNISTD_H -DHAVE_NANOSLEEP -DHAVE_ERR -I. -Idfu-util-0.11/src -I/usr/local/include/libusb-1.0
24+
#cgo darwin LDFLAGS: -L/usr/local/lib -lusb-1.0 -framework IOKit -framework CoreFoundation -framework Security
25+
#cgo !darwin LDFLAGS: -L/usr/local/lib -lusb-1.0
2526
2627
#include <dfu.h>
2728
#include <dfu_util.h>

0 commit comments

Comments
 (0)