From: Marco Costalba Date: Sun, 1 Sep 2013 20:37:26 +0000 (-0700) Subject: Don't use lpthread for Android X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=849b089a63cb40833006704fb6e3fc66e8010dfa;hp=aee404f53269c79ec42eb4d54b0bc6e2d8b1c340 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 67cd382a..860b146a 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