summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1073afa05..58e7416bf 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ CC1 := tools/agbcc/bin/agbcc$(EXE)
CPP := $(PREFIX)cpp
LD := $(PREFIX)ld
OBJCOPY := $(PREFIX)objcopy
-SHA1SUM := sha1sum -c
+SHA1SUM := $(shell { command -v sha1sum || command -v shasum; } 2>/dev/null) -c
GBAGFX := tools/gbagfx/gbagfx$(EXE)
RSFONT := tools/rsfont/rsfont$(EXE)
AIF2PCM := tools/aif2pcm/aif2pcm$(EXE)