From owner-freebsd-current@FreeBSD.ORG Mon Sep 22 09:22:55 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 BC37916A4B3 for ; Mon, 22 Sep 2003 09:22:55 -0700 (PDT) Received: from mail.westbend.net (ns1.westbend.net [216.47.253.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0D1A43FDD for ; Mon, 22 Sep 2003 09:22:54 -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 h8MGMo2a065707; Mon, 22 Sep 2003 11:22:50 -0500 (CDT) (envelope-from hetzelsw@westbend.net) Message-ID: <016601c38125$c5888f20$13fd2fd8@Admin02> From: "Scot W. Hetzel" To: "Harald Schmalzbauer" References: <1064101768.13585.4.camel@localhost.localdomain> <003201c37fd6$e2e0fb70$13fd2fd8@Admin02> <3F6DBBD8.8050203@schmalzbauer.de> Date: Mon, 22 Sep 2003 11:22:46 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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=0.5 required=8.0 tests=QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_05_08, USER_AGENT_OE version=2.43 cc: freebsd-current@freebsd.org cc: Dan Naumov 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: Mon, 22 Sep 2003 16:22:55 -0000 From: "Harald Schmalzbauer" > Scot W. Hetzel wrote: > > 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} > > > > To the port that is broken by having -pthread support removed, then compile > > the port. > > > > If it still fails to compile, then you'll need to add a sed command to the > > port that replaces -pthread with ${PTHREAD_LIBS} and -DTHREAD_SAFE with > > ${PTHREAD_LIBS} in the configure script or the Makefiles. > > Well, that'd fit my skills, but what is for example with the jdk13? I > have no idea how to fix this one. > Add the following to the post-patch target in the jdk13/Makefile: @${REINPLACE_CMD} -s "s:-pthread:${PTHREAD_LIBS}:g" ${WRKSRC}/common/Defs.gmk Scot