PKGBUILDs/community/nodejs/atomic.patch

27 lines
882 B
Diff
Raw Normal View History

2019-10-14 11:43:47 +00:00
--- node.gyp.orig 2019-10-14 05:32:27.370777519 -0600
+++ node.gyp 2019-10-14 05:39:18.842470025 -0600
@@ -314,6 +314,12 @@
2019-08-24 20:16:06 +00:00
'deps/v8/include'
2018-08-16 23:15:23 +00:00
],
+ 'link_settings': {
+ 'libraries': [
+ '-latomic',
+ ],
+ },
+
'sources': [
2019-08-24 20:16:06 +00:00
'src/node_main.cc'
2018-10-29 17:58:51 +00:00
],
2019-10-14 11:43:47 +00:00
--- tools/v8_gypfiles/v8.gyp.orig 2019-10-14 05:32:59.750753410 -0600
+++ tools/v8_gypfiles/v8.gyp 2019-10-14 05:39:18.842470025 -0600
@@ -795,7 +795,7 @@
2019-08-24 20:16:06 +00:00
}],
# Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library
# to implement atomic memory access
2019-10-14 11:43:47 +00:00
- ['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc"]', {
+ ['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc", "arm"]', {
2019-08-24 20:16:06 +00:00
'link_settings': {
'libraries': ['-latomic', ],
},