VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorUnit 193 <32967979+unit193@users.noreply.github.com>2019-10-02 15:31:07 -0400
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-10-02 21:31:07 +0200
commit10c4a3e807a27a3735dd57b58e61adcaac96133d (patch)
treeac5156e7c6a4577f958346f2ef89f0da2a5620fa /src
parent0d91dab5b989f7d184c43b9468d17d5c5c0a756d (diff)
downloadVeraCrypt-10c4a3e807a27a3735dd57b58e61adcaac96133d.tar.gz
VeraCrypt-10c4a3e807a27a3735dd57b58e61adcaac96133d.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile2
1 files changed, 1 insertions, 1 deletions
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