Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Sep 2003 12:52:58 -0400 (EDT)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        John Baldwin <jhb@freebsd.org>
Cc:        current@freebsd.org
Subject:   RE: Fixing -pthreads (Re: ports and -current)
Message-ID:  <200309241652.h8OGqwxS064654@khavrinen.lcs.mit.edu>
In-Reply-To: <Pine.GSO.4.10.10309241111040.26896-100000@pcnet5.pcnet.com>
References:  <XFMail.20030924091322.jhb@FreeBSD.org> <Pine.GSO.4.10.10309241111040.26896-100000@pcnet5.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309241652.h8OGqwxS064654>