Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Rajlich <nathan@tootallnate.net>2012-08-04 23:39:54 +0400
committerNathan Rajlich <nathan@tootallnate.net>2012-08-06 22:40:44 +0400
commit8b11f29cf3881cdc0e1e1a553c543f561128daed (patch)
tree3ca1876445a9190e541ffe00f9f369b312d03a0e /Makefile
parentdc9ae01ef7a6fcafd82b306d80b9f715d72ed670 (diff)
Makefile: properly set the ARCH variable when forcing a DESTCPU
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 004d074f42a..da076378130 100644
--- a/Makefile
+++ b/Makefile
@@ -193,7 +193,15 @@ docclean:
VERSION=v$(shell $(PYTHON) tools/getnodeversion.py)
PLATFORM=$(shell uname | tr '[:upper:]' '[:lower:]')
+ifeq ($(DESTCPU),x64)
+ARCH=x86_64
+else
+ifeq ($(DESTCPU),ia32)
+ARCH=i386
+else
ARCH=$(shell uname -m)
+endif
+endif
TARNAME=node-$(VERSION)
TARBALL=$(TARNAME).tar.gz
BINARYNAME=$(TARNAME)-$(PLATFORM)-$(ARCH)