diff options
Diffstat (limited to 'meta-oe/recipes-devtools/nodejs/nodejs_10.17.0.bb')
-rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs_10.17.0.bb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_10.17.0.bb b/meta-oe/recipes-devtools/nodejs/nodejs_10.17.0.bb index 4013c6931..9af0d998c 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs_10.17.0.bb +++ b/meta-oe/recipes-devtools/nodejs/nodejs_10.17.0.bb | |||
@@ -19,7 +19,6 @@ SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \ | |||
19 | file://0001-Disable-running-gyp-files-for-bundled-deps.patch \ | 19 | file://0001-Disable-running-gyp-files-for-bundled-deps.patch \ |
20 | file://0004-Make-compatibility-with-gcc-4.8.patch \ | 20 | file://0004-Make-compatibility-with-gcc-4.8.patch \ |
21 | file://0005-Link-atomic-library.patch \ | 21 | file://0005-Link-atomic-library.patch \ |
22 | file://0006-Use-target-ldflags.patch \ | ||
23 | " | 22 | " |
24 | SRC_URI_append_class-target = " \ | 23 | SRC_URI_append_class-target = " \ |
25 | file://0002-Using-native-torque.patch \ | 24 | file://0002-Using-native-torque.patch \ |
@@ -58,6 +57,18 @@ PACKAGECONFIG[libuv] = "--shared-libuv,,libuv" | |||
58 | PACKAGECONFIG[nghttp2] = "--shared-nghttp2,,nghttp2" | 57 | PACKAGECONFIG[nghttp2] = "--shared-nghttp2,,nghttp2" |
59 | PACKAGECONFIG[zlib] = "--shared-zlib,,zlib" | 58 | PACKAGECONFIG[zlib] = "--shared-zlib,,zlib" |
60 | 59 | ||
60 | # We don't want to cross-compile during target compile, | ||
61 | # and we need to use the right flags during host compile, | ||
62 | # too. | ||
63 | EXTRA_OEMAKE = "\ | ||
64 | CC.host='${CC}' \ | ||
65 | CFLAGS.host='${CPPFLAGS} ${CFLAGS}' \ | ||
66 | CXX.host='${CXX}' \ | ||
67 | CXXFLAGS.host='${CPPFLAGS} ${CXXFLAGS}' \ | ||
68 | LDFLAGS.host='${LDFLAGS}' \ | ||
69 | AR.host='${AR}' \ | ||
70 | " | ||
71 | |||
61 | # Node is way too cool to use proper autotools, so we install two wrappers to forcefully inject proper arch cflags to workaround gypi | 72 | # Node is way too cool to use proper autotools, so we install two wrappers to forcefully inject proper arch cflags to workaround gypi |
62 | do_configure () { | 73 | do_configure () { |
63 | rm -rf ${S}/deps/openssl | 74 | rm -rf ${S}/deps/openssl |