main.o(.text+0x2f): In function `main':
/home/workspace2/kernel/linux-2.6.25/tang/LCD/main.c:25: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
make: *** [lcd] 错误 1
如果程序是多线程,要求加入线程库,如gcc -o test test.c -lpthread
在Makefile.am中加入一句
LIBS = -lpthread