Subject: Re: tcl/pthreads dependencies
To: None <,>
From: Dan McMahill <>
List: tech-pkg
Date: 05/20/2004 18:36:04
On Thu, May 20, 2004 at 10:22:20PM +0200, Thomas Klausner wrote:
> On Thu, May 20, 2004 at 01:30:07PM -0600, wrote:
> > 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?
> I don't know much about tcl, but I heard programs should use
> The package installs the file in /usr/pkg/lib/
> and it contains the following lines (on a native libpthread system):
> # Additional libraries to use when linking Tcl.
> TCL_LIBS='  -lpthread -lm'
> Cheers,
>  Thomas

This is the prefered way.  If you search around, you'll see some
packages, math/R I think does it, that in the configure script it searches
for and then sources it to get TCL_LIBS.  Some other
pkgs like math/scilab which didn't do it right on their own have had
this hacked in.