Date: Sat, 9 Mar 2002 16:36:37 -0500 From: Chris Faulhaber <jedgar@fxp.org> To: Martin Blapp <mb@imp.ch> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: ports/editors/openoffice/files patch-solenv::inc::unxfbsdi.mk Message-ID: <20020309213637.GA47386@peitho.fxp.org> In-Reply-To: <20020309222850.E84384-100000@levais.imp.ch> References: <Pine.GSO.4.10.10203091615290.25521-100000@pcnet1.pcnet.com> <20020309222850.E84384-100000@levais.imp.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
--M9NhX3UHpAaciwkO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sat, Mar 09, 2002 at 10:30:58PM +0100, Martin Blapp wrote:
> Hi all,
>=20
> > > I thought -D_REENTRANT was required in FreeBSD.
> >
> > It isn't (currently) necessary under FreeBSD, but I think it is
> > defined by POSIX. It should probably stay as it is hurting nothing
> > and we may make use of it later.
> >
> > Also, -pthread is deprecated in -current. Isn't there a PTHREADS_LIBS
> > or something for ports to rely on? In current, we want to see -lc_r
> > used, and eventually replaced with -lpthread.
>=20
> So what of these flags is necessary for STABLE and CURRENT to build.
>=20
> -lc_r for CURRENT (and in which order, after Xlibs, at the end, at the be=
ginning ?
>=20
> -pthread for STABLE ?
>=20
> And what else ?
>=20
For ports, use PTHREAD_CFLAGS and PTHREAD_LIBS; as defined in bsd.port.mk:
.if ${OSVERSION} < 500016
PTHREAD_CFLAGS=3D -D_THREAD_SAFE
PTHREAD_LIBS=3D "-pthread"
.else
PTHREAD_CFLAGS=3D -D_THREAD_SAFE
PTHREAD_LIBS=3D "-lc_r"
.endif
--=20
Chris D. Faulhaber - jedgar@fxp.org - jedgar@FreeBSD.org
--------------------------------------------------------
FreeBSD: The Power To Serve - http://www.FreeBSD.org
--M9NhX3UHpAaciwkO
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: FreeBSD: The Power To Serve
iEYEARECAAYFAjyKgGUACgkQObaG4P6BelAZ4QCZAZGnEkVCpKoaBh4fPcM+c1MW
e2UAnijjr0xii2QlvDo7U0lYMrdtxKGE
=8LWW
-----END PGP SIGNATURE-----
--M9NhX3UHpAaciwkO--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020309213637.GA47386>
