Subject: tcl/pthreads dependencies
To: None <tech-pkg@netbsd.org>
From: None <brook@biology.nmsu.edu>
List: tech-pkg
Date: 05/20/2004 13:30:07
I have a package that depends on tcl, which is made with threads.
Consequently, the tcl library refers to lots of pthreads symbols.

I have included the tcl buildlink3.mk file in my package Makefile.
However, when configure tries to determine where the tcl library is,
the test program fails because of undefined pthread symbols.  Clearly,
this is because -lpthreads is not included during the test
compilation.

What is the best way to get configure to become aware that it should
include -lpthreads on the command line when compiling the test
program?

Surely, this must be happening in other cases as well and have been
solved already.  Any help is welcome.  Thanks.

Cheers,
Brook