From 8b11f29cf3881cdc0e1e1a553c543f561128daed Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Sat, 4 Aug 2012 12:39:54 -0700 Subject: Makefile: properly set the ARCH variable when forcing a DESTCPU --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 004d074f42..da07637813 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) -- cgit v1.2.3