010-add-iconv-linkage.patch 836 B

12345678910111213141516171819202122
  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