diff options
author | Eneas U de Queiroz <cote2004-github@yahoo.com> | 2018-12-07 15:20:22 -0200 |
---|---|---|
committer | Eneas U de Queiroz <cote2004-github@yahoo.com> | 2018-12-07 15:22:53 -0200 |
commit | 4688a248b8c0de84fb1438669285f12b29ef0052 (patch) | |
tree | 39e77ed9b0e56bfa746a105d7d88f8092472c2c1 /lang/node-serialport | |
parent | 663f8f3da2a14f12540cce24f98f377303b0d120 (diff) |
node-serialport: copy files, not symlinks
This was meant to be included in 93d6d1b, but wasn't.
Current version of npm install installs a link to the build directory.
The workaround is to use npm pack to make a tarball and install from
that.
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
Diffstat (limited to 'lang/node-serialport')
-rw-r--r-- | lang/node-serialport/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/node-serialport/Makefile b/lang/node-serialport/Makefile index da1e4ff40..2c75acf06 100644 --- a/lang/node-serialport/Makefile +++ b/lang/node-serialport/Makefile @@ -48,12 +48,14 @@ CPU:=$(subst x86_64,x64,$(subst i386,ia32,$(ARCH))) EXTRA_LDFLAGS="-L$(TOOLCHAIN_DIR)/lib/ -Wl,-rpath-link $(TOOLCHAIN_DIR)/lib/" \ define Build/Compile + cd $(PKG_BUILD_DIR) ; \ $(MAKE_FLAGS) \ npm_config_arch=$(CONFIG_ARCH) \ npm_config_nodedir=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/ \ npm_config_cache=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/npm-cache \ PREFIX="$(PKG_INSTALL_DIR)/usr/" \ - npm install --build-from-source --target_arch=$(CPU) -g $(PKG_BUILD_DIR) + npm install --build-from-source --target_arch=$(CPU) -g \ + `npm pack $(PKG_BUILD_DIR) | tail -n 1` endef define Package/node-serialport/install |