diff options
-rw-r--r-- | lib/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile index c85d450..aedd1d4 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -2,10 +2,14 @@ ARCH ?= x86_64 -ifeq ($(ARCH),arm64) +ifeq ($(ARCH),x86_64) +PREFIX := +else ifeq ($(ARCH),arm64) PREFIX := aarch64-linux-gnu- else ifeq ($(ARCH),arm) PREFIX := arm-linux-gnueabi- +else +$(error Unsupported architecture ARCH=$(ARCH)) endif AS := $(PREFIX)gcc |