From owner-cvs-src@FreeBSD.ORG Sun Aug 31 20:33:43 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FD2016A4BF for ; Sun, 31 Aug 2003 20:33:43 -0700 (PDT) Received: from smtp.mho.com (smtp.mho.net [64.58.4.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 7A09843F93 for ; Sun, 31 Aug 2003 20:33:40 -0700 (PDT) (envelope-from scottl@freebsd.org) Received: (qmail 41334 invoked by uid 1002); 1 Sep 2003 03:33:39 -0000 Received: from unknown (HELO freebsd.org) (64.58.1.252) by smtp.mho.net with SMTP; 1 Sep 2003 03:33:39 -0000 Message-ID: <3F52BE08.9010408@freebsd.org> Date: Sun, 31 Aug 2003 21:33:28 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joe Marcus Clarke References: <3F52B5CE.8040905@freebsd.org> <1062386257.42216.21.camel@shumai.marcuscom.com> In-Reply-To: <1062386257.42216.21.camel@shumai.marcuscom.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: deischen@freebsd.org cc: cvs-src@freebsd.org cc: src-committers@freebsd.org cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/contrib/gcc/config freebsd-spec.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2003 03:33:43 -0000 Joe Marcus Clarke wrote: > On Sun, 2003-08-31 at 22:58, Scott Long wrote: >> >>This opens up very important questions. How do we smoothly make >>the transition? > > > What GNOME ports are doing is replacing -lpthread with ${PTHREAD_LIBS} > wherever we see it. This is done via the gnomehack meta-component. > There is also a proposal to make a general pthread hack in ports/55683. > > >> What is the appropriate threading library for each >>platform? > > > Once we decide on this, it should be easy to adjust bsd.port.mk to set > PTHREAD_LIBS accordingly for each platform. > > >> Should 'libpthread' be a symlink, or should a library be >>renamed? > > > I don't think you have to do either. It should be easy enough to have > ${PTHREAD_LIBS} be set to a reasonable value on each platform, plus have > users override that if they desire. > I've heard rumors of some ports that abuse autoconf to check for not only pthread.h, but also libpthread.so. Is this a concern? What about packages that one might compile directly (not through the ports tree)? While this question is probably not politically correct, it is one that should be addressed. Compiling outside of the ports tree is a common occurence and we should probably remove as many landmines from it as possible. > >> How do we answer these last two questions in a consistent >>fashion? > > > I think the main platform developers need to answer the preferred thread > implementation question, then it needs to be done in bsd.port.mk. I assume that bsd.port.mk settings can be made on a per-arch basis? Scott