From 22a2cd662ad8e3166e0a40293418171ef7c6b429 Mon Sep 17 00:00:00 2001 From: Hirokazu MORIKAWA Date: Thu, 22 Dec 2016 11:21:43 +0900 Subject: [PATCH] fix compile error : mkpeephole related issuse: https://github.com/nodejs/node/issues/10303 https://github.com/nodejs/node/issues/9707 fix code: https://github.com/artynet/openwrt-git/blob/openwrt-1505-setup-04/package/linino/node7/Makefile --- node/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/node/Makefile b/node/Makefile index c9617fa01..be7fd3f27 100644 --- a/node/Makefile +++ b/node/Makefile @@ -16,7 +16,7 @@ PKG_SOURCE_URL:=http://nodejs.org/dist/${PKG_VERSION} PKG_MD5SUM:=f7e8924c13c74576f6c0688bcf1bbfde HOST_BUILD_DEPENDS:=python/host -PKG_BUILD_DEPENDS:=python/host +PKG_BUILD_DEPENDS:=python/host +node/host PKG_INSTALL:=1 PKG_USE_MIPS16:=0 @@ -99,6 +99,14 @@ HOST_CONFIGURE_ARGS:= \ HOST_CONFIGURE_CMD:=python ./configure +MKTOOL=$(HOST_BUILD_DIR)/out/Release/mkpeephole +FILE_V8_GYP:=$(PKG_BUILD_DIR)/deps/v8/src/v8.gyp + +define Build/Prepare + $(Build/Prepare/Default) + $(SED) "s#<(mkpeephole_exec)#$(MKTOOL)#g" $(FILE_V8_GYP) +endef + define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/