diff --git a/build/makelib/common.mk b/build/makelib/common.mk index e303a2ac4..14ce58c03 100644 --- a/build/makelib/common.mk +++ b/build/makelib/common.mk @@ -16,7 +16,13 @@ .SUFFIXES: SHELL := /bin/bash +ifneq (, $(shell command -v shasum)) SHA256CMD := shasum -a 256 +else ifneq (, $(shell command -v sha256sum)) +SHA256CMD := sha256sum +else +$(error "please install 'shasum' or 'sha256sum'") +endif ifeq ($(origin PLATFORM), undefined) ifeq ($(origin GOOS), undefined)