git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH (update)] make: By default, remove -pthread on Darwin (it is included by cstdlib).

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 26, 2009, 17:47 UTC
Message-ID
<7vr62q6jtp.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1232987609-6229-1-git-send-email-ted@tedpavlic.com>
Ted Pavlic <ted@tedpavlic.com> writes:
Show 11 quoted lines
> As discussed in
>
> http://lists.apple.com/archives/Unix-porting/2005/Mar/msg00019.html
>
> the Mac OS X C standard library is always thread safe and always
> includes the pthread library. So explicitly using -pthread causes an
> 'unrecognized option' compiler warning.
>
> This patch clears PTHREAD_LIBS by default. However, if
> FORCE_DARWIN_PTHREAD_LIBS is defined, then PTHREAD_LIBS will be set as
> before.
Why is this even configurable?  You explained pretty clearly that:
 - With -pthread, you get an nasty warning;
 - By default, we now do not use -pthread;
 - By adding FORCE_DARWIN_PTHREAD_LIBS, you can still compile with
   -pthread.

But the above leaves the reader wondering in what situation it may be useful to use FORCE_* and for what purpose other than to get the nasty warning back (which probably is not most users want to).

Previous: Ted PavlicNext: Ted Pavlic
Message 3 of 5 in “make: By default, remove -pthread on Darwin (it is included by cstdlib).”
  1. make: By default, remove -pthread on Darwin (it is included by cstdlib).Ted Pavlic, Jan 26, 2009
  2. make: By default, remove -pthread on Darwin (it is included by cstdlib).Ted Pavlic, Jan 26, 2009
  3. Junio C HamanoJan 26, 2009
  4. Ted PavlicJan 26, 2009
  5. make: Remove -pthread on Darwin (it is included by cstdlib).Ted Pavlic, Jan 26, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.