From: Marco Costalba Date: Sun, 1 Sep 2013 20:37:26 +0000 (-0700) Subject: Don't use lpthread for Android X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=849b089a63cb40833006704fb6e3fc66e8010dfa;p=fairystockfish.git Don't use lpthread for Android Thanks to Peter Osterlund for the feedback. No functional change. --- diff --git a/src/Makefile b/src/Makefile index 67cd382..860b146 100644 --- a/src/Makefile +++ b/src/Makefile @@ -263,9 +263,12 @@ endif ### On mingw use Windows threads, otherwise POSIX ifneq ($(comp),mingw) - # Haiku has pthreads in its libroot, so only link it in on other platforms - ifneq ($(UNAME),Haiku) - LDFLAGS += -lpthread + # On Android Bionic's C library comes with its own pthread implementation bundled in + ifneq ($(arch),armv7) + # Haiku has pthreads in its libroot, so only link it in on other platforms + ifneq ($(UNAME),Haiku) + LDFLAGS += -lpthread + endif endif endif