Subject: Re: tcl/pthreads dependencies
To: None <brook@biology.nmsu.edu>
From: John R. Shannon <john@johnrshannon.com>
List: tech-pkg
Date: 05/20/2004 13:36:36
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Possibly to add a BUILDLINK_LDFLAGS.tcl+=3D-lpthreads to tcl's buildlink3.m=
k=20
file.

On Thursday 20 May 2004 01:30 pm, brook@biology.nmsu.edu wrote:
> 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

=2D --=20

John R. Shannon
john@johnrshannon.com
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iEYEARECAAYFAkCtCM0ACgkQOKbCxya4HYvDtQCgt8z8hloXSKeseEu8FISbS7lZ
8yMAoLqV+6whbNg4AiWMfpJGbPVBzK/h
=3DhjS/
=2D----END PGP SIGNATURE-----