Subject: Re: CVS commit: pkgsrc/mk
To: Chris Gilbert <firstname.lastname@example.org>
From: grant beattie <grant@NetBSD.org>
Date: 06/14/2004 11:26:32
Content-Type: text/plain; charset=us-ascii
On Sun, Jun 13, 2004 at 11:40:21AM +0100, Chris Gilbert wrote:
> > Log Message:
> > when using native threads, only set BUILDLINK_CFLAGS.pthread=3D-pthread=
> > systems known to support its (FreeBSD, NetBSD, Linux).
> > fixes breakage caused by passing -pthread to SunPro cc(1) and likely
> > also fixes platforms other than the above.
> I believe threaded programs using SunPro cc need -mt passing instead, so =
that it links libthread before libc, to get the thread safe versions of som=
e libc functions, eg fork.
> If you've access to a Solaris box you might want to check the -mt option.
indeed you are right, I must have missed this.
I guess pthread.buildlink3.mk needs to be made aware of the compiler
in use and set the right flags based on that.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)
-----END PGP SIGNATURE-----