From: Ted Pavlic Date: Mon, 26 Jan 2009 19:03:59 +0000 (-0500) Subject: make: Remove -pthread on Darwin (it is included by cstdlib). X-Git-Tag: v1.6.2-rc0~83 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f7d9d04e3be697989c960881f9b0d50f1ea6a6be;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index b4d9cb494..9d451cf3e 100644 --- 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