X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=1f9f27dae570c61c55191a57df59dcee85f914be;hp=91286988694d700442752a0524f3056e726a60ca;hb=7b2cda95d9d697a047ac8df33d3805ba77590a8f;hpb=11b1a76f35108316ee37d9d7056f4d621305a7ed diff --git a/src/Makefile b/src/Makefile index 91286988..1f9f27da 100644 --- a/src/Makefile +++ b/src/Makefile @@ -232,7 +232,7 @@ ifeq ($(COMP),clang) endif ### 3.2 General compiler settings -CXXFLAGS = -Wall -Wcast-qual -fno-rtti $(EXTRACXXFLAGS) +CXXFLAGS = -Wall -Wcast-qual -fno-exceptions -fno-rtti $(EXTRACXXFLAGS) ifeq ($(comp),gcc) CXXFLAGS += -ansi -pedantic -Wno-long-long -Wextra -Wshadow @@ -243,7 +243,7 @@ ifeq ($(comp),mingw) endif ifeq ($(comp),icc) - CXXFLAGS += -wd383,981,1418,1419,1476,10187,10188,11505,11503 -Wcheck -Wabi -Wdeprecated -strict-ansi + CXXFLAGS += -diag-disable 1476,10120 -Wcheck -Wabi -Wdeprecated -strict-ansi endif ifeq ($(comp),clang) @@ -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