Makefile: properly set the ARCH variable when forcing a DESTCPU
This commit is contained in:
Родитель
dc9ae01ef7
Коммит
8b11f29cf3
8
Makefile
8
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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче