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

  1. Index: hidapi-0.8.0-rc1/libusb/Makefile.linux
  2. ===================================================================
  3. --- hidapi-0.8.0-rc1.orig/libusb/Makefile.linux
  4. +++ hidapi-0.8.0-rc1/libusb/Makefile.linux
  5. @@ -22,7 +22,7 @@ COBJS_LIBUSB = hid.o
  6. COBJS = $(COBJS_LIBUSB)
  7. CPPOBJS = ../hidtest/hidtest.o
  8. OBJS = $(COBJS) $(CPPOBJS)
  9. -LIBS_USB = `pkg-config libusb-1.0 --libs` -lrt -lpthread
  10. +LIBS_USB = `pkg-config libusb-1.0 --libs` -lrt -lpthread -liconv
  11. LIBS = $(LIBS_USB)
  12. INCLUDES ?= -I../hidapi `pkg-config libusb-1.0 --cflags`
  13. @@ -33,7 +33,7 @@ hidtest-libusb: $(COBJS_LIBUSB) $(CPPOBJ
  14. # Shared Libs
  15. libhidapi-libusb.so: $(COBJS_LIBUSB)
  16. - $(CC) $(LDFLAGS) $(LIBS_USB) -shared -fpic -Wl,-soname,$@.0 $^ -o $@
  17. + $(CC) $(LDFLAGS) $^ $(LIBS_USB) -shared -fpic -Wl,-soname,$@.0 -o $@
  18. # Objects
  19. $(COBJS): %.o: %.c