summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dfb047b)
raw | patch | inline | side by side (parent: dfb047b)
author | Ted Pavlic <ted@tedpavlic.com> | |
Mon, 26 Jan 2009 19:03:59 +0000 (14:03 -0500) | ||
committer | Junio 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>
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 | patch | blob | history |
diff --git a/Makefile b/Makefile
index b4d9cb49497482a6a84d4afbadc63f85a56e4a73..9d451cf3e54a02dd7057bc64448a8f8d4a2587b3 100644 (file)
--- a/Makefile
+++ b/Makefile
BASIC_LDFLAGS += -L/opt/local/lib
endif
endif
+ PTHREAD_LIBS =
endif
ifndef CC_LD_DYNPATH