Skip to content

Commit

Permalink
make: Remove -pthread on Darwin (it is included by cstdlib).
Browse files Browse the repository at this point in the history
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 if Darwin is detected.

Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Ted Pavlic authored and Junio C Hamano committed Jan 26, 2009
1 parent dfb047b commit f7d9d04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ ifeq ($(uname_S),Darwin)
BASIC_LDFLAGS += -L/opt/local/lib
endif
endif
PTHREAD_LIBS =
endif

ifndef CC_LD_DYNPATH
Expand Down

0 comments on commit f7d9d04

Please sign in to comment.