Subject: Re: tcl/pthreads dependencies
To: None <firstname.lastname@example.org, email@example.com>
From: Dan McMahill <firstname.lastname@example.org>
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, email@example.com 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
> tclConfig.sh. The package installs the file in /usr/pkg/lib/tclConfig.sh
> and it contains the following lines (on a native libpthread system):
> # Additional libraries to use when linking Tcl.
> TCL_LIBS=' -lpthread -lm'
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 tclConfig.sh 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.