Subject: programming pthread compile and run
To: None <netbsd-help@netbsd.org>
From: Hussain Ali <hali@agiservices.com>
List: netbsd-help
Date: 09/13/2001 15:21:03
hello,

I am having some trouble running a program in i386-1.5.1 which 
uses pthreads. When using the Makefile below, the program 
compiles but upon running it I get: 

"Shared object "libpthread.so.13 not found"

are my gcc flags wrong?

Note it does compile and run on linux and solaris.

-hussain


---------- Makefile ----------

FLAGS = -g3 -pedantic -Wall
LIB = -I/usr/pkg/include -L/usr/pkg/lib -lpthread -lc

syn:	synack.c
	gcc synack.c -o syn $(FLAGS) $(LIB)  

clean:	rm -f *.o