summaryrefslogtreecommitdiff
path: root/lang/node-serialport
diff options
context:
space:
mode:
authorHirokazu MORIKAWA <morikw2@gmail.com>2019-04-19 09:22:23 +0900
committerRosen Penev <rosenp@gmail.com>2020-01-26 20:38:07 -0800
commit4ac86244ab01b4f545ca14d460711f3003f14ef6 (patch)
treeeacb3fe51c6d71495cba810f727280d01e6786bf /lang/node-serialport
parent1091c431def321ed8a309c0855a528c41c7de972 (diff)
node-serialport: fix i386 build fail
more stability for parallel build Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com> (cherry-picked from 1ce1ca6e0622c6ad7fb61e44b7c96b028939186a)
Diffstat (limited to 'lang/node-serialport')
-rw-r--r--lang/node-serialport/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/lang/node-serialport/Makefile b/lang/node-serialport/Makefile
index 9a1a755cb..59ba6ed10 100644
--- a/lang/node-serialport/Makefile
+++ b/lang/node-serialport/Makefile
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NPM_NAME:=serialport
PKG_NAME:=node-$(PKG_NPM_NAME)
PKG_VERSION:=6.1.1
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://registry.npmjs.org/$(PKG_NPM_NAME)/-/
@@ -46,12 +46,15 @@ endef
CPU:=$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))
EXTRA_LDFLAGS="$(FPIC) -L$(TOOLCHAIN_DIR)/lib/ -Wl,-rpath-link $(TOOLCHAIN_DIR)/lib/" \
+TMPNPM:=$(shell mktemp -u XXXXXXXXXX)
+
+TARGET_CFLAGS+=$(FPIC)
define Build/Compile
$(MAKE_FLAGS) \
npm_config_arch=$(CONFIG_ARCH) \
npm_config_nodedir=$(BUILD_DIR)/node-v$(PKG_NODE_VERSION)/ \
- npm_config_cache=$(BUILD_DIR)/node-v$(PKG_NODE_VERSION)/npm-cache \
+ npm_config_cache=$(BUILD_DIR)/node-v$(PKG_NODE_VERSION)/npm-cache-$(TMPNPM) \
PREFIX="$(PKG_INSTALL_DIR)/usr/" \
npm install --build-from-source --target_arch=$(CPU) -g $(PKG_BUILD_DIR)
endef