From 10c4a3e807a27a3735dd57b58e61adcaac96133d Mon Sep 17 00:00:00 2001 From: Unit 193 <32967979+unit193@users.noreply.github.com> Date: Wed, 2 Oct 2019 15:31:07 -0400 Subject: Allow $(ARCH) to be defined during build (#471) This can be useful when crossbuilding or building in a chroot where using uname -m would cause the wrong compiler options. --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 50af3021..756d4bb4 100644 --- a/src/Makefile +++ b/src/Makefile @@ -132,7 +132,7 @@ export PLATFORM_UNSUPPORTED := 0 export CPU_ARCH ?= unknown export SIMD_SUPPORTED := 0 -ARCH = $(shell uname -m) +ARCH ?= $(shell uname -m) ifneq (,$(filter i386 i486 i586 i686 x86,$(ARCH))) CPU_ARCH = x86 -- cgit v1.2.3