From owner-freebsd-current@FreeBSD.ORG Tue Sep 9 17:25:10 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 A6C0C16A4BF; Tue, 9 Sep 2003 17:25:10 -0700 (PDT) Received: from mail.westbend.net (ns1.westbend.net [216.47.253.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2C7743FE0; Tue, 9 Sep 2003 17:25:08 -0700 (PDT) (envelope-from hetzelsw@westbend.net) Received: from ADMIN00 (admin00.westbend.net [216.47.253.17]) by mail.westbend.net (8.12.9/8.12.9) with SMTP id h8A0P02a034200; Tue, 9 Sep 2003 19:25:00 -0500 (CDT) (envelope-from hetzelsw@westbend.net) Message-ID: <065501c37731$f9a1cfe0$11fd2fd8@westbend.net> From: "Scot W. Hetzel" To: "Doug Barton" , "Matthias Andree" References: <20030909042349.GA686@chihiro.leafy.idv.tw><200309090942.17317@harrymail> <20030909161456.U42161@12-234-22-23.pyvrag.nggov.pbz> Date: Tue, 9 Sep 2003 19:25:01 -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=1.3 required=8.0 tests=QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_03_05, UPPERCASE_25_50,USER_AGENT_OE version=2.43 X-Spam-Level: * cc: freebsd-current@freebsd.org cc: Harald Schmalzbauer Subject: Re: -pthread deprecated, but when? 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: Wed, 10 Sep 2003 00:25:10 -0000 From: "Doug Barton" > On Tue, 9 Sep 2003, Matthias Andree wrote: > > Doug Barton writes: > > > > > @ ${CP} ${WRKSRC}/configure ${WRKSRC}/configure.Patched > > > @ ${SED} -e 's#-lpthread#${PTHREAD_LIBS}#g' \ > > > > How about: ${SED} -Ee 's#-l?pthread#${PTHREAD_LIBS}#g' \ > > > > That's the one necessary to catch -pthread (such as BerkeleyDB) in > > addition to -lpthread. > > You should use whatever is appropriate for your port... I just posted an > example from one of mine. > Also look for PTHREAD_{LIBS/CFLAGS} in your ports configure script. Then all you need to do is set CONFIGURE_ENV in the ports Makefile: CONFIGURE_ENV+= PTHREAD_LIBS=${PTHREAD_LIBS} \ PTHREAD_CFLAGS=${PTHREAD_CFLAGS} That's how I fixed the security/amavisd port in my ports tree. Scot