make: Remove -pthread on Darwin (it is included by cstdlib).
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>
Ted Pavlic committed
Jan 26, 2009 at 14:03 UTC
f7d9d04e3be697989c960881f9b0d50f1ea6a6be
1 file changed
+1
Makefile
+1
@@ -817,6 +817,7 @@ ifeq ($(uname_S),Darwin)
817
BASIC_LDFLAGS += -L/opt/local/lib
818
endif
819
endif
820
+ PTHREAD_LIBS =
821
endif
822
823
ifndef CC_LD_DYNPATH