summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/npm.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass
index 55a6985fb0..8f8712a024 100644
--- a/meta/classes/npm.bbclass
+++ b/meta/classes/npm.bbclass
@@ -247,8 +247,10 @@ python npm_do_compile() {
247 # Add node-gyp configuration 247 # Add node-gyp configuration
248 configs.append(("arch", d.getVar("NPM_ARCH"))) 248 configs.append(("arch", d.getVar("NPM_ARCH")))
249 configs.append(("release", "true")) 249 configs.append(("release", "true"))
250 sysroot = d.getVar("RECIPE_SYSROOT_NATIVE") 250 nodedir = d.getVar("NPM_NODEDIR")
251 nodedir = os.path.join(sysroot, d.getVar("prefix_native").strip("/")) 251 if not nodedir:
252 sysroot = d.getVar("RECIPE_SYSROOT_NATIVE")
253 nodedir = os.path.join(sysroot, d.getVar("prefix_native").strip("/"))
252 configs.append(("nodedir", nodedir)) 254 configs.append(("nodedir", nodedir))
253 configs.append(("python", d.getVar("PYTHON"))) 255 configs.append(("python", d.getVar("PYTHON")))
254 256