aboutsummaryrefslogtreecommitdiff
path: root/nodejs/0001-no-libatomic.patch
diff options
context:
space:
mode:
authorWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-07-19 05:00:58 +0000
committerWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-07-19 05:00:58 +0000
commita198d7febc7b23e2f43a790db1f305c83d82b0bd (patch)
treeda4edb95f2a35dc4ff760acc38d6bce5e8c8d01b /nodejs/0001-no-libatomic.patch
parent6c0938d1bd3d0e6c9c1ea138fc87debcd7981809 (diff)
downloadalicelinux-a198d7febc7b23e2f43a790db1f305c83d82b0bd.tar.gz
alicelinux-a198d7febc7b23e2f43a790db1f305c83d82b0bd.zip
Woodpecker CI c5fb2fda37b1c2b3366e0267097101ad8c03a132 [SKIP CI]
Diffstat (limited to 'nodejs/0001-no-libatomic.patch')
-rw-r--r--nodejs/0001-no-libatomic.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/nodejs/0001-no-libatomic.patch b/nodejs/0001-no-libatomic.patch
new file mode 100644
index 00000000..d9ef90ff
--- /dev/null
+++ b/nodejs/0001-no-libatomic.patch
@@ -0,0 +1,29 @@
+--- a/node.gyp
++++ b/node.gyp
+@@ -510,9 +510,6 @@
+ '-Wl,-bnoerrmsg',
+ ],
+ }],
+- ['OS=="linux" and clang==1', {
+- 'libraries': ['-latomic'],
+- }],
+ ],
+ },
+
+--- a/tools/v8_gypfiles/v8.gyp
++++ b/tools/v8_gypfiles/v8.gyp
+@@ -1306,14 +1306,6 @@
+ ['v8_postmortem_support', {
+ 'dependencies': ['postmortem-metadata#target'],
+ }],
+- # Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library
+- # to implement atomic memory access.
+- # Clang needs it for some atomic operations (https://clang.llvm.org/docs/Toolchain.html#atomics-library).
+- ['(OS=="linux" and clang==1) or (v8_current_cpu in ["mips64", "mips64el", "arm", "riscv64", "loong64"])', {
+- 'link_settings': {
+- 'libraries': ['-latomic', ],
+- },
+- }],
+ ],
+ }, # v8_base_without_compiler
+ {