meta-openembedded/meta-oe/recipes-devtools/nodejs/nodejs/0005-Link-atomic-library.patch
Andrej Valek 1c8e4a679a nodejs 8.15.0 -> 10.15.1
Update nodejs to active 10.x LTS release 10.15.1.
- link atomic library
- make it compatible with gcc < 4.9

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-02-17 12:40:56 -08:00

21 lines
700 B
Diff

Link atomic library to fix missing undefined referrences
like "undefined reference to `__atomic_fetch_add_8'"
Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
diff -Naur node-v10.15.1/deps/v8/gypfiles/v8.gyp node-v10.15.1/deps/v8/gypfiles/v8.gyp
--- node-v10.15.1/deps/v8/gypfiles/v8.gyp 2019-02-13 09:02:21.000000000 +0100
+++ node-v10.15.1/deps/v8/gypfiles/v8.gyp 2019-02-15 21:27:11.755679660 +0100
@@ -452,6 +452,11 @@
'<(DEPTH)',
'<(SHARED_INTERMEDIATE_DIR)'
],
+ 'link_settings': {
+ 'libraries': [
+ '-latomic'
+ ],
+ },
'sources': [
'<@(inspector_all_sources)',
'../include//v8-inspector-protocol.h',