You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
836 B

Index: hidapi-0.8.0-rc1/libusb/Makefile.linux
===================================================================
--- hidapi-0.8.0-rc1.orig/libusb/Makefile.linux
+++ hidapi-0.8.0-rc1/libusb/Makefile.linux
@@ -22,7 +22,7 @@ COBJS_LIBUSB = hid.o
COBJS = $(COBJS_LIBUSB)
CPPOBJS = ../hidtest/hidtest.o
OBJS = $(COBJS) $(CPPOBJS)
-LIBS_USB = `pkg-config libusb-1.0 --libs` -lrt -lpthread
+LIBS_USB = `pkg-config libusb-1.0 --libs` -lrt -lpthread -liconv
LIBS = $(LIBS_USB)
INCLUDES ?= -I../hidapi `pkg-config libusb-1.0 --cflags`
@@ -33,7 +33,7 @@ hidtest-libusb: $(COBJS_LIBUSB) $(CPPOBJ
# Shared Libs
libhidapi-libusb.so: $(COBJS_LIBUSB)
- $(CC) $(LDFLAGS) $(LIBS_USB) -shared -fpic -Wl,-soname,$@.0 $^ -o $@
+ $(CC) $(LDFLAGS) $^ $(LIBS_USB) -shared -fpic -Wl,-soname,$@.0 -o $@
# Objects
$(COBJS): %.o: %.c