From 9cebcd69efd4587e3ac56b23e488fbbc9b359f48 Mon Sep 17 00:00:00 2001 From: Manuel Herrmann <0@0x17.de> Date: Tue, 16 Apr 2019 23:59:57 +0200 Subject: makefile: describe mapping from amd64 to x86_64 --- makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index c651c3d18..4bc84492a 100644 --- a/makefile +++ b/makefile @@ -39,7 +39,12 @@ endif endif -# map architecture amd64 to x86_64 +# conditionally map ARCH from amd64 to x86_64 if set from the outside +# +# Some OS provide a definition for $(ARCH) through an environment +# variable. It might be set to amd64 which implies x86_64. Since e.g. +# luajit expects either i386 or x86_64, the value amd64 is transformed +# to match a directory for a platform dependent implementation. ARCH :=$(if $(findstring amd64,$(ARCH)),x86_64,$(ARCH)) xmake_dir_install :=$(prefix)/share/xmake -- cgit v1.3.1