diff --git a/docs/changes.txt b/docs/changes.txt index 115489cb5..751c9d7bc 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -23,6 +23,7 @@ ## Bugs ## +- Fixed building error on Raspberry Pi - Fixed false negative on Unit Test in case of out-of-memory with grep in single mode - Fixed false negative on Unit Test with hash-type 25400 - Fixed functional error when nonce-error-corrections that were set on the command line in hash-mode 22000/22001 were not accepted diff --git a/src/Makefile b/src/Makefile index a26f5598c..5e8045cb8 100644 --- a/src/Makefile +++ b/src/Makefile @@ -254,6 +254,14 @@ endif endif endif +ifeq ($(UNAME),Linux) +IS_RPI := $(shell grep -q Raspberry /proc/cpuinfo && echo 1 || echo 0) + +ifeq ($(IS_RPI),1) +CFLAGS += -mcpu=cortex-a72 +endif +endif + CFLAGS += -pipe -Iinclude/ -IOpenCL/ # LZMA