Permalink
Browse files

Libusb: testgui: Explicitly link to libpthread.

Reported by: Xiaofan Chen <xiaofanc@gmail.com>
  • Loading branch information...
1 parent 1fd27ea commit bdb87db5b86d1a4f649898b7ca63550b65551cf6 @signal11 signal11 committed May 4, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 libusb/Makefile.linux
  2. +1 −1 testgui/Makefile.linux
View
@@ -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
+LIBS_USB = `pkg-config libusb-1.0 --libs` -lrt -lpthread
LIBS = $(LIBS_USB)
INCLUDES ?= -I../hidapi `pkg-config libusb-1.0 --cflags`
View
@@ -14,7 +14,7 @@ COBJS=../libusb/hid.o
CPPOBJS=test.o
OBJS=$(COBJS) $(CPPOBJS)
CFLAGS=-I../hidapi -Wall -g -c `fox-config --cflags` `pkg-config libusb-1.0 --cflags`
-LIBS=-ludev -lrt `fox-config --libs` `pkg-config libusb-1.0 --libs`
+LIBS=-ludev -lrt -lpthread `fox-config --libs` `pkg-config libusb-1.0 --libs`
testgui: $(OBJS)

0 comments on commit bdb87db

Please sign in to comment.