Call yarn in node/env to actually cross compile native packages.
Without it the host compiler is used and installation of native packages
ends with something like:

arm-v7a-linux-gnueabihf-strip: 
platform/packages/nodejs_packages-0.0.1/usr/lib/node_modules/epoll/build/Release/obj.target/epoll.node:
 file format not recognized

Signed-off-by: Sascha Hauer <[email protected]>
---
 rules/nodejs_packages.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/nodejs_packages.make b/rules/nodejs_packages.make
index e96382f62..bf533cc92 100644
--- a/rules/nodejs_packages.make
+++ b/rules/nodejs_packages.make
@@ -59,7 +59,7 @@ $(STATEDIR)/nodejs_packages.compile:
                touch $(YARN_LOCK); \
                ln -fs $(YARN_LOCK) $(NODEJS_PACKAGES_DIR)/yarn.lock; \
        fi
-       yarn $(YARN_OPTS) add $(NODEJS_PACKAGES_LIST)
+       $(call node/env, yarn $(YARN_OPTS) add $(NODEJS_PACKAGES_LIST))
        @find $(NODEJS_PACKAGES_CACHE) -type f -name '.yarn-tarball.tgz' -delete
        @$(call touch)
 
-- 
2.29.2


_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to