Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Sat, Mar 09, 2002 at 10:30:58PM +0100, Martin Blapp wrote:
> Hi all,
> 
> > > 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.
> 
> So what of these flags is necessary for STABLE and CURRENT to build.
> 
> -lc_r for CURRENT (and in which order, after Xlibs, at the end, at the beginning ?
> 
> -pthread for STABLE ?
> 
> And what else ?
> 

For ports, use PTHREAD_CFLAGS and PTHREAD_LIBS; as defined in bsd.port.mk:

  .if ${OSVERSION} < 500016
  PTHREAD_CFLAGS= -D_THREAD_SAFE
  PTHREAD_LIBS=           "-pthread"
  .else
  PTHREAD_CFLAGS= -D_THREAD_SAFE
  PTHREAD_LIBS=           "-lc_r"
  .endif

-- 
Chris D. Faulhaber - jedgar@fxp.org - jedgar@FreeBSD.org
--------------------------------------------------------
FreeBSD: The Power To Serve   -   http://www.FreeBSD.org

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: FreeBSD: The Power To Serve

iEYEARECAAYFAjyKgGUACgkQObaG4P6BelAZ4QCZAZGnEkVCpKoaBh4fPcM+c1MW
e2UAnijjr0xii2QlvDo7U0lYMrdtxKGE
=8LWW
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020309213637.GA47386>