VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnit 193 <32967979+unit193@users.noreply.github.com>2019-10-02 19:31:07 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-10-02 19:31:07 (GMT)
commit10c4a3e807a27a3735dd57b58e61adcaac96133d (patch)
treeac5156e7c6a4577f958346f2ef89f0da2a5620fa
parent0d91dab5b989f7d184c43b9468d17d5c5c0a756d (diff)
downloadVeraCrypt-10c4a3e807a27a3735dd57b58e61adcaac96133d.zip
VeraCrypt-10c4a3e807a27a3735dd57b58e61adcaac96133d.tar.gz
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.
-rw-r--r--src/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 50af302..756d4bb 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