summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/nodejs
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/nodejs')
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/libatomic.patch29
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs_22.22.0.bb2
2 files changed, 24 insertions, 7 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/libatomic.patch b/meta-oe/recipes-devtools/nodejs/nodejs/libatomic.patch
index d987ac50be..835c7018de 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs/libatomic.patch
+++ b/meta-oe/recipes-devtools/nodejs/nodejs/libatomic.patch
@@ -17,6 +17,10 @@ Fix:
17Upstream-Status: Inappropriate [OE specific] 17Upstream-Status: Inappropriate [OE specific]
18 18
19Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 19Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
20
21Added libatomic library explicitly to x86 targets.
22
23Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
20--- 24---
21 node.gyp | 13 ++++++++++++- 25 node.gyp | 13 ++++++++++++-
22 tools/v8_gypfiles/v8.gyp | 15 ++++++++++++--- 26 tools/v8_gypfiles/v8.gyp | 15 ++++++++++++---
@@ -26,7 +30,7 @@ diff --git a/node.gyp b/node.gyp
26index b425f443..f296f35c 100644 30index b425f443..f296f35c 100644
27--- a/node.gyp 31--- a/node.gyp
28+++ b/node.gyp 32+++ b/node.gyp
29@@ -487,7 +487,18 @@ 33@@ -503,7 +503,18 @@
30 ], 34 ],
31 }], 35 }],
32 ['OS=="linux" and clang==1', { 36 ['OS=="linux" and clang==1', {
@@ -50,7 +54,7 @@ diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp
50index b23263cf..dcabf4ca 100644 54index b23263cf..dcabf4ca 100644
51--- a/tools/v8_gypfiles/v8.gyp 55--- a/tools/v8_gypfiles/v8.gyp
52+++ b/tools/v8_gypfiles/v8.gyp 56+++ b/tools/v8_gypfiles/v8.gyp
53@@ -1100,9 +1100,18 @@ 57@@ -1348,9 +1348,18 @@
54 # Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library 58 # Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library
55 # to implement atomic memory access 59 # to implement atomic memory access
56 ['v8_current_cpu in ["mips64", "mips64el", "ppc", "arm", "riscv64", "loong64"]', { 60 ['v8_current_cpu in ["mips64", "mips64el", "ppc", "arm", "riscv64", "loong64"]', {
@@ -72,6 +76,21 @@ index b23263cf..dcabf4ca 100644
72 }], 76 }],
73 ], 77 ],
74 }, # v8_base_without_compiler 78 }, # v8_base_without_compiler
75-- 79diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp
762.35.5 80index cb82d4f15bc..65cb123b7bf 100644
77 81--- a/tools/v8_gypfiles/v8.gyp
82+++ b/tools/v8_gypfiles/v8.gyp
83@@ -1820,6 +1820,13 @@
84 ['enable_lto=="true"', {
85 'ldflags': [ '-fno-lto' ],
86 }],
87+ # For future patch-rebases: this hunk is in mksnapshot target.
88+ # ia32 includes x86 also
89+ ['v8_target_arch=="ia32"', {
90+ 'link_settings': {
91+ 'libraries': ['-latomic']
92+ }
93+ }],
94 ],
95 }, # mksnapshot
96 {
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_22.22.0.bb b/meta-oe/recipes-devtools/nodejs/nodejs_22.22.0.bb
index 1ef01cc3b2..b3a4fb4245 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs_22.22.0.bb
+++ b/meta-oe/recipes-devtools/nodejs/nodejs_22.22.0.bb
@@ -133,8 +133,6 @@ python do_create_v8_qemu_wrapper () {
133do_create_v8_qemu_wrapper[dirs] = "${B}" 133do_create_v8_qemu_wrapper[dirs] = "${B}"
134addtask create_v8_qemu_wrapper after do_configure before do_compile 134addtask create_v8_qemu_wrapper after do_configure before do_compile
135 135
136LDFLAGS:append:x86 = " -latomic"
137
138export CC_host 136export CC_host
139export CFLAGS_host 137export CFLAGS_host
140export CXX_host 138export CXX_host