Date: Sat, 20 Sep 2003 20:03:24 -0500 From: "Scot W. Hetzel" <hetzelsw@westbend.net> To: "Dan Naumov" <dan.naumov@ofw.fi>, <freebsd-current@freebsd.org> Subject: Re: Getting -pthread support back into local source tree Message-ID: <004b01c37fdc$2bf5fd60$13fd2fd8@Admin02> References: <1064101768.13585.4.camel@localhost.localdomain> <003201c37fd6$e2e0fb70$13fd2fd8@Admin02>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. ------=_NextPart_000_0048_01C37FB2.3FF171C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit From: "Scot W. Hetzel" <hetzelsw@westbend.net> > From: "Dan Naumov" <dan.naumov@ofw.fi> > > Seeing as -pthread support has been removed from -CURRENT breaking > > _LOTS_ of ports, is it possible to "get it back" into a local source > > tree ? If so, how ? Thanks in advance. > > > All you need to do is add: > > CONFIGURE_ENV+= PTHREAD_LIBS=${PTHREAD_LIBS} \ > PTHREAD_CFLAGS=${PTHREAD_CFLAGS} > A better place for the above is to add it to bsd.port.mk where PTHREAD_{CFLAGS,LIBS} are defined. With the attached patch. Scot ------=_NextPart_000_0048_01C37FB2.3FF171C0 Content-Type: application/octet-stream; name="pthread.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="pthread.patch" Index: bsd.port.mk=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v=0A= retrieving revision 1.466=0A= diff -u -r1.466 bsd.port.mk=0A= --- bsd.port.mk 29 Aug 2003 02:26:02 -0000 1.466=0A= +++ bsd.port.mk 21 Sep 2003 00:56:11 -0000=0A= @@ -1634,8 +1634,10 @@=0A= PTHREAD_CFLAGS=3D -D_THREAD_SAFE=0A= PTHREAD_LIBS=3D -pthread=0A= .else=0A= -PTHREAD_CFLAGS=3D -D_THREAD_SAFE=0A= -PTHREAD_LIBS=3D -lc_r=0A= +PTHREAD_CFLAGS?=3D -D_THREAD_SAFE=0A= +PTHREAD_LIBS?=3D -lc_r=0A= +CONFIGURE_ENV+=3D PTHREAD_CFLAGS=3D${PTHREAD_CFLAGS} \=0A= + PTHREAD_LIBS=3D${PTHREAD_LIBS}=0A= .endif=0A= =0A= .if exists(/usr/bin/fetch)=0A= ------=_NextPart_000_0048_01C37FB2.3FF171C0--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004b01c37fdc$2bf5fd60$13fd2fd8>