RE: Fixing -pthreads (Re: ports and -current)

From: Andre Guibert de Bruet <andy_at_siliconlandmark.com>
Date: Wed, 24 Sep 2003 13:25:27 -0400 (EDT)
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<whatever your binary wants>?

> Andre Guibert de Bruet | Enterprise Software Consultant >
> Silicon Landmark, LLC. | http://siliconlandmark.com/    >
Received on Wed Sep 24 2003 - 08:25:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:23 UTC