nodejs: Link to atomic library when building for ia32

This commit is contained in:
Yaksh Bariya 2021-09-12 19:00:25 +05:30
parent 89e0dfb0c6
commit 988e8fd7a4
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581

View File

@ -1,5 +1,5 @@
--- ./node.gyp 2021-09-10 22:55:14.000000000 +0530
+++ ./node.gyp.mod 2021-09-11 17:48:42.567707131 +0530
--- ./node.gyp.orig 2021-09-13 07:24:18.446321152 +0530
+++ ./node.gyp 2021-09-13 08:02:04.399412339 +0530
@@ -340,6 +340,7 @@
'include_dirs': [
@ -171,3 +171,28 @@
{
'target_name': 'overlapped-checker',
@@ -1295,6 +1140,11 @@
'Ws2_32.lib',
],
}],
+ ['target_arch=="ia32"', {
+ 'libraries': [
+ '-latomic',
+ ],
+ }],
],
}, # mkcodecache
{
@@ -1346,6 +1196,12 @@
'Ws2_32.lib',
],
}],
+ ['target_arch=="ia32"', {
+ 'libraries': [
+ '-latomic',
+ ],
+ 'cflags': ['-march=i686'],
+ }],
],
}, # node_mksnapshot
], # end targets