Makefile: properly set the ARCH variable when forcing a DESTCPU
authorNathan Rajlich <nathan@tootallnate.net>
Sat, 4 Aug 2012 19:39:54 +0000 (12:39 -0700)
committerNathan Rajlich <nathan@tootallnate.net>
Mon, 6 Aug 2012 18:40:44 +0000 (11:40 -0700)
Makefile

index 004d074..da07637 100644 (file)
--- 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)