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)
### 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
ifeq ($(debug),no)
CXXFLAGS += -DNDEBUG
else
- CXXFLAGS += -g
+ CXXFLAGS += -g
endif
### 3.5 Optimization
endif
ifeq ($(arch),armv7)
- CXXFLAGS += -fno-gcse
+ CXXFLAGS += -fno-gcse -mthumb -march=armv7-a -mfloat-abi=softfp
endif
endif
ifeq ($(os),osx)
CXXFLAGS += -fast -mdynamic-no-pic
else
- CXXFLAGS += -O3
+ CXXFLAGS += -fast
endif
endif
embed-signature:
@echo "Running benchmark for getting the signature ..."
- @$(SIGNBENCH) 2>&1 | grep 'Nodes searched' | grep -o ": .*" | tr -d ': ' > sign.txt
- @sed -i -e 's,^,/static const string Version/s/"\\(.*\\)"/"sig-,1' -e 's,$$,"/1,1' sign.txt
- @sed -i -f sign.txt misc.cpp
+ @$(SIGNBENCH) 2>&1 | sed -n 's/Nodes searched : \(.*\)/\/string Version\/s\/"\\(.*\\)"\/"sig-\1"\//p' > sign.txt
+ @sed -f sign.txt misc.cpp > misc2.cpp
+ @mv misc2.cpp misc.cpp
@rm sign.txt
-signature-build: build embed-signature
+signature-build: build embed-signature
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) all
signature-profile-build: build embed-signature profile-build