From owner-freebsd-current@FreeBSD.ORG Tue Sep 9 16:14:08 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 AD87616A4BF for ; Tue, 9 Sep 2003 16:14:08 -0700 (PDT) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id B123C43FDD for ; Tue, 9 Sep 2003 16:14:06 -0700 (PDT) (envelope-from DougB@freebsd.org) Received: from 12-234-22-23.client.attbi.com ([12.234.22.23]) by comcast.net (sccrmhc11) with SMTP id <2003090923140501100hj8aie>; Tue, 9 Sep 2003 23:14:05 +0000 Date: Tue, 9 Sep 2003 16:14:04 -0700 (PDT) From: Doug Barton To: Khairil Yusof In-Reply-To: <1063113297.64124.76.camel@wolverine.home.net> Message-ID: <20030909161233.C42161@12-234-22-23.pyvrag.nggov.pbz> References: <20030909042349.GA686@chihiro.leafy.idv.tw> <200309090942.17317@harrymail> <1063113297.64124.76.camel@wolverine.home.net> Organization: http://www.FreeBSD.org/ X-message-flag: Outlook -- Not just for spreading viruses anymore! MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org 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: Tue, 09 Sep 2003 23:14:08 -0000 On Tue, 9 Sep 2003, Khairil Yusof wrote: > On Tue, 2003-09-09 at 16:07, Doug Barton wrote: > > > Any occurences of -lc_r should be changed to ${PTHREAD_LIBS} too. > > Seems that -lc_r is set by default in bsd.port.mk for ${PTHREAD_LIBS}. The reason we use the variable is that it expands differently on different platforms, so in theory it's always doing the right thing. > Does it mean that we should be able to specify a pthread library in > future as a make option for installing ports? It means that you should always use the existing method of substituting any instances of -pthread or -lc_r that are hard coded into a port with ${PTHREAD_LIBS}. Doug -- This .signature sanitized for your protection