Subject: Re: CVS commit: pkgsrc/mk
To: Chris Gilbert <chris@dokein.co.uk>
From: grant beattie <grant@NetBSD.org>
List: tech-pkg
Date: 06/14/2004 11:26:32
--A9z/3b/E4MkkD+7G
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=
 on
> > systems known to support its (FreeBSD, NetBSD, Linux).
> >=20
> > fixes breakage caused by passing -pthread to SunPro cc(1) and likely
> > also fixes platforms other than the above.
>=20
> 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.
>=20
> 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.

grant.


--A9z/3b/E4MkkD+7G
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAzP7IluYOb9yiFXoRAtxFAKC2nkcdIQ1SZYv1NFs8v9I774rbegCeM0r5
OkLjUFELXQHBNaVX/f2jrc4=
=hBZy
-----END PGP SIGNATURE-----

--A9z/3b/E4MkkD+7G--