Hi Saul,

On Tue, Jan 07, at 01:35 Saul Tigh via lfs-dev wrote:
> gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall
> -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align
> -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow
> -g  -fPIC -I/usr/include
> -I/build_scripts/libcap/src/libcap-2.30/tests/../libcap/include
> libcap_psx_test.c -o libcap_psx_test
> -L/build_scripts/libcap/src/libcap-2.30/tests/../libcap -lcap
> -L/build_scripts/libcap/src/libcap-2.30/tests/../libcap -lpsx -lpthread
> -Wl,-wrap,pthread_create --static
> /usr/bin/ld: cannot find -lpthread
> /usr/bin/ld: cannot find -lc
> collect2: error: ld returned 1 exit status

Do you have the pthread static library?

Also no need for -fPIC here.

 Αγαθοκλής
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to