From owner-freebsd-current@FreeBSD.ORG Sat Sep 20 18:03:34 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0423D16A4B3 for ; Sat, 20 Sep 2003 18:03:34 -0700 (PDT) Received: from mail.westbend.net (ns1.westbend.net [216.47.253.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C15743FAF for ; Sat, 20 Sep 2003 18:03:33 -0700 (PDT) (envelope-from hetzelsw@westbend.net) Received: from Admin02 (admin02.westbend.net [216.47.253.19]) by mail.westbend.net (8.12.9/8.12.9) with SMTP id h8L13U2a025527; Sat, 20 Sep 2003 20:03:30 -0500 (CDT) (envelope-from hetzelsw@westbend.net) Message-ID: <004b01c37fdc$2bf5fd60$13fd2fd8@Admin02> From: "Scot W. Hetzel" To: "Dan Naumov" , References: <1064101768.13585.4.camel@localhost.localdomain> <003201c37fd6$e2e0fb70$13fd2fd8@Admin02> Date: Sat, 20 Sep 2003 20:03:24 -0500 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0048_01C37FB2.3FF171C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam-Status: No, hits=1.0 required=8.0 tests=MIME_EXCESSIVE_QP,QUOTED_EMAIL_TEXT,REFERENCES, SPAM_PHRASE_03_05,USER_AGENT_OE version=2.43 X-Spam-Level: * Subject: Re: Getting -pthread support back into local source tree X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2003 01:03:34 -0000 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" > From: "Dan Naumov" > > 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--