From owner-cvs-src@FreeBSD.ORG Sun Aug 31 20:39:55 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 BFBA016A4BF; Sun, 31 Aug 2003 20:39:55 -0700 (PDT) Received: from ms-smtp-02.southeast.rr.com (ms-smtp-02.southeast.rr.com [24.93.67.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73BBE43F75; Sun, 31 Aug 2003 20:39:52 -0700 (PDT) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (rdu57-17-158.nc.rr.com [66.57.17.158])h813aHCJ027086; Sun, 31 Aug 2003 23:36:17 -0400 (EDT) Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) h813cgff027761; Sun, 31 Aug 2003 23:38:42 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Scott Long In-Reply-To: <3F52BE08.9010408@freebsd.org> References: <3F52B5CE.8040905@freebsd.org> <1062386257.42216.21.camel@shumai.marcuscom.com> <3F52BE08.9010408@freebsd.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-2NgfQFv8hhEIMykcIe/e" Organization: MarcusCom, Inc. Message-Id: <1062387589.42216.26.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Sun, 31 Aug 2003 23:39:49 -0400 X-Spam-Status: No, hits=-11.6 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_XIMIAN autolearn=ham version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) 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:39:56 -0000 --=-2NgfQFv8hhEIMykcIe/e Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2003-08-31 at 23:33, Scott Long wrote: > 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? > >=20 > >=20 > > What GNOME ports are doing is replacing -lpthread with ${PTHREAD_LIBS} > > wherever we see it. This is done via the gnomehack meta-component.=20 > > There is also a proposal to make a general pthread hack in ports/55683. > >=20 > >=20 > >> What is the appropriate threading library for each > >>platform? > >=20 > >=20 > > Once we decide on this, it should be easy to adjust bsd.port.mk to set > > PTHREAD_LIBS accordingly for each platform. > >=20 > >=20 > >> Should 'libpthread' be a symlink, or should a library be > >>renamed? > >=20 > >=20 > > 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 hav= e > > users override that if they desire. > >=20 >=20 > I've heard rumors of some ports that abuse autoconf to check for not > only pthread.h, but also libpthread.so. Perhaps. The standard GNU template these days is solved with the aforementioned pthread hack. > Is this a concern? What about > packages that one might compile directly (not through the ports tree)? This is a concern, and I'm not sure what the best solution is. Perhaps we will need to feed patches back to GNU when we decide what platforms will use what threading implementations. > 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. >=20 > >=20 > >> How do we answer these last two questions in a consistent > >>fashion? > >=20 > >=20 > > I think the main platform developers need to answer the preferred threa= d > > implementation question, then it needs to be done in bsd.port.mk. >=20 > I assume that bsd.port.mk settings can be made on a per-arch basis? Yes. Joe >=20 > Scott >=20 --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-2NgfQFv8hhEIMykcIe/e Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQA/Ur+Fb2iPiv4Uz4cRAl45AKCMNhHtkWDhCqtX8qmdtgrRfTEIOgCZAXmq OB3eCaRtyhZmi4/VWpYEcIQ= =CH99 -----END PGP SIGNATURE----- --=-2NgfQFv8hhEIMykcIe/e--