From owner-freebsd-current@FreeBSD.ORG Wed Sep 24 09:53:02 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 E607116A4B3; Wed, 24 Sep 2003 09:53:02 -0700 (PDT) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B7DD43FF3; Wed, 24 Sep 2003 09:53:00 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost.nic.fr [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.9/8.12.9) with ESMTP id h8OGqwgk064657 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK CN=khavrinen.lcs.mit.edu issuer=SSL+20Client+20CA); Wed, 24 Sep 2003 12:52:59 -0400 (EDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.9/8.12.9/Submit) id h8OGqwxS064654; Wed, 24 Sep 2003 12:52:58 -0400 (EDT) (envelope-from wollman) Date: Wed, 24 Sep 2003 12:52:58 -0400 (EDT) From: Garrett Wollman Message-Id: <200309241652.h8OGqwxS064654@khavrinen.lcs.mit.edu> To: John Baldwin In-Reply-To: References: X-Spam-Score: -26.4 () EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES X-Scanned-By: MIMEDefang 2.37 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 16:53:03 -0000 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. -GAWollman