Skip to content

Commit f7d9d04

Browse files
tpavlicgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dfb047b commit f7d9d04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@ ifeq ($(uname_S),Darwin)
817817
BASIC_LDFLAGS += -L/opt/local/lib
818818
endif
819819
endif
820+
PTHREAD_LIBS =
820821
endif
821822

822823
ifndef CC_LD_DYNPATH

0 commit comments

Comments
 (0)