Code

make: Remove -pthread on Darwin (it is included by cstdlib).
authorTed Pavlic <ted@tedpavlic.com>
Mon, 26 Jan 2009 19:03:59 +0000 (14:03 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Jan 2009 23:11:37 +0000 (15:11 -0800)
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>
Makefile

index b4d9cb49497482a6a84d4afbadc63f85a56e4a73..9d451cf3e54a02dd7057bc64448a8f8d4a2587b3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -817,6 +817,7 @@ ifeq ($(uname_S),Darwin)
                        BASIC_LDFLAGS += -L/opt/local/lib
                endif
        endif
+       PTHREAD_LIBS =
 endif
 
 ifndef CC_LD_DYNPATH