diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/npm.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass index cf2c12047e..88d8de91e9 100644 --- a/meta/classes/npm.bbclass +++ b/meta/classes/npm.bbclass | |||
@@ -233,6 +233,9 @@ python npm_do_compile() { | |||
233 | # Add node-gyp configuration | 233 | # Add node-gyp configuration |
234 | configs.append(("arch", d.getVar("NPM_ARCH"))) | 234 | configs.append(("arch", d.getVar("NPM_ARCH"))) |
235 | configs.append(("release", "true")) | 235 | configs.append(("release", "true")) |
236 | sysroot = d.getVar("RECIPE_SYSROOT_NATIVE") | ||
237 | nodedir = os.path.join(sysroot, d.getVar("prefix_native").strip("/")) | ||
238 | configs.append(("nodedir", nodedir)) | ||
236 | 239 | ||
237 | # Pack and install the main package | 240 | # Pack and install the main package |
238 | tarball = npm_pack(env, d.getVar("NPM_PACKAGE"), tmpdir) | 241 | tarball = npm_pack(env, d.getVar("NPM_PACKAGE"), tmpdir) |