From 9b251328b1861b8d3695d189e7626f1abc9fac60 Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 28 Feb 2021 20:41:51 +0100 Subject: lib/Makefile: error on unsupported ARCH --- lib/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/Makefile') 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 -- cgit v1.2.3