From owner-freebsd-current@FreeBSD.ORG Wed Sep 24 10:25:39 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 34B3616A4C4; Wed, 24 Sep 2003 10:25:39 -0700 (PDT) Received: from alpha.siliconlandmark.com (alpha.siliconlandmark.com [209.69.98.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id C041F43FF9; Wed, 24 Sep 2003 10:25:34 -0700 (PDT) (envelope-from andy@siliconlandmark.com) Received: from alpha.siliconlandmark.com (localhost [127.0.0.1]) h8OHPTch071520; Wed, 24 Sep 2003 13:25:29 -0400 (EDT) (envelope-from andy@siliconlandmark.com) Received: from localhost (andy@localhost)h8OHPSSY071517; Wed, 24 Sep 2003 13:25:28 -0400 (EDT) (envelope-from andy@siliconlandmark.com) X-Authentication-Warning: alpha.siliconlandmark.com: andy owned process doing -bs Date: Wed, 24 Sep 2003 13:25:27 -0400 (EDT) From: Andre Guibert de Bruet To: Garrett Wollman In-Reply-To: <200309241652.h8OGqwxS064654@khavrinen.lcs.mit.edu> Message-ID: <20030924131531.J45239@alpha.siliconlandmark.com> References: <200309241652.h8OGqwxS064654@khavrinen.lcs.mit.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean cc: current@freebsd.org Subject: RE: Fixing -pthreads (Re: ports and -current) 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, 24 Sep 2003 17:25:39 -0000 On Wed, 24 Sep 2003, Garrett Wollman wrote: > I think it was John Baldwin who wrote: > > >> I think having a magic option to gcc that translates to 'link with the > >> foo library' is rediculous. What's next, a gcc -math to get the math > >> functions in libm? > > As far as POSIX is concerned, that's precisely how it works. `c99 > foo.c -l m' means `link in the math functions, wherever they may > happen to live'. Likewise `-l rt' for realtime -- and (relevant to > this discussion) `-l pthread' for threads. There is no requirement > that any of these libraries exist as such. That may be true, but these libraries don't have gcc options like '-pthread' does to have them linked against. Why should a threaded library be any different than libz, libpng or lib? > Andre Guibert de Bruet | Enterprise Software Consultant > > Silicon Landmark, LLC. | http://siliconlandmark.com/ >