X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=ad8ec05ffb3c9406e173ef1870655e6f29ecebd9;hp=67cd382a53ed30482387df42cc88adb017fc755c;hb=c2cefa6de0807e389709a1a12591eb3a86017d08;hpb=aee404f53269c79ec42eb4d54b0bc6e2d8b1c340 diff --git a/src/Makefile b/src/Makefile index 67cd382a..ad8ec05f 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 @@ -308,7 +311,7 @@ ifeq ($(optimize),yes) ifeq ($(os),osx) CXXFLAGS += -fast -mdynamic-no-pic else - CXXFLAGS += -O3 + CXXFLAGS += -fast endif endif