From owner-freebsd-ports@FreeBSD.ORG Tue Sep 23 23:11:55 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E73916A4B3; Tue, 23 Sep 2003 23:11:55 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92F984400B; Tue, 23 Sep 2003 23:11:54 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id h8O6BrgG004201; Wed, 24 Sep 2003 02:11:53 -0400 (EDT) Date: Wed, 24 Sep 2003 02:11:53 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Stijn Hoop In-Reply-To: <20030924060135.GB95116@pcwin002.win.tue.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: ports@freebsd.org cc: Michael Edenfield cc: jb@freebsd.org cc: current@freebsd.org cc: Kris Kennaway Subject: Re: Initial list of ports that fail due to -pthread X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2003 06:11:55 -0000 On Wed, 24 Sep 2003, Stijn Hoop wrote: > On Wed, Sep 24, 2003 at 01:49:50AM -0400, Daniel Eischen wrote: > > If FreeBSD wants to take the simple approach and only support > > one thread library in ports (-pthread == -lpthread) and not > > make it selectable via PTHREAD_LIBS, then its not a problem. > > It would be nice to be able to support all our thread > > libraries, but I grow weary. > > Just an idea (I hope this hasn't been said before in the mega thread but at > least I didn't get it this way): > > - fix all ports to respect PTHREAD_LIBS _ON THE LINKING STAGE_ (so no > global search & replace, for it shouldn't be used in compile command lines) This sounds nice, but I don't know that there really is much difference in changes needed. > - keep '-pthread' as a compiler option, which maps to a NOOP for compiling > and '-lpthread' (aka libkse) for linking That's already the case; -pthread never did anything on the compile, only the link. > - set PTHREAD_LIBS to the default value of -pthread > - allow PTHREAD_LIBS to be set to something other, e.g. '-lthr', in > /etc/make.conf (or the make command line) This is already the path that ports is going down :-) -- Dan Eischen