05 Dec, 2013
1 commit
-
Reproduce:
ray@hr-bak:~/usb$ make -C tools/usb/
make: Entering directory `/home/ray/usb/tools/usb'
gcc -Wall -Wextra -g -lpthread -I../include -o testusb testusb.c
/tmp/cc0EMxfy.o: In function `main':
/home/ray/usb/tools/usb/testusb.c:508: undefined reference to `pthread_create'
/home/ray/usb/tools/usb/testusb.c:531: undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make: *** [testusb] Error 1
make: Leaving directory `/home/ray/usb/tools/usb'Comments:
In the latest version (4.7.3) of gcc compiler, it requres that
libraries must follow the object or source files like below:"gcc hello.c -lpthread" instead of "gcc -lpthread hello.c"
And it isn't encountered at gcc version 4.7.2.
So this patch fix to move the pthread option after testusb.c.Signed-off-by: Huang Rui
Signed-off-by: Greg Kroah-Hartman
29 Feb, 2012
1 commit
-
Use the header file in tools/include instead of duplicating the endian
functions.Cc: Davidlohr Bueso
Acked-by: Greg Kroah-Hartman
Signed-off-by: Matt Fleming
Link: http://lkml.kernel.org/r/1330436245-24875-7-git-send-email-matt@console-pimps.org
Signed-off-by: H. Peter Anvin
18 Feb, 2011
1 commit
-
Build USB tools easier.
Signed-off-by: Davidlohr Bueso
Signed-off-by: Greg Kroah-Hartman