]> git.sesse.net Git - stockfish/blobdiff - src/Makefile
Replace -O3 with -fast for intel compiler
[stockfish] / src / Makefile
index f8d65ccb32eddc33395199087984a3145b784aa0..ad8ec05ffb3c9406e173ef1870655e6f29ecebd9 100644 (file)
@@ -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
 
@@ -296,7 +299,7 @@ ifeq ($(optimize),yes)
                endif
 
                ifeq ($(arch),armv7)
-                       CXXFLAGS += -fno-gcse
+                       CXXFLAGS += -fno-gcse -mthumb -march=armv7-a -mfloat-abi=softfp
                endif
        endif
 
@@ -308,7 +311,7 @@ ifeq ($(optimize),yes)
                ifeq ($(os),osx)
                        CXXFLAGS += -fast -mdynamic-no-pic
                else
-                       CXXFLAGS += -O3
+                       CXXFLAGS += -fast
                endif
        endif