From owner-cvs-all Sat Mar 9 13:36:51 2002 Delivered-To: cvs-all@freebsd.org Received: from peitho.fxp.org (peitho.fxp.org [209.26.95.40]) by hub.freebsd.org (Postfix) with ESMTP id C78C537B400; Sat, 9 Mar 2002 13:36:43 -0800 (PST) Received: by peitho.fxp.org (Postfix, from userid 1501) id AA00F13668; Sat, 9 Mar 2002 16:36:37 -0500 (EST) Date: Sat, 9 Mar 2002 16:36:37 -0500 From: Chris Faulhaber To: Martin Blapp 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> References: <20020309222850.E84384-100000@levais.imp.ch> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="M9NhX3UHpAaciwkO" Content-Disposition: inline In-Reply-To: <20020309222850.E84384-100000@levais.imp.ch> User-Agent: Mutt/1.3.24i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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