Link to -latomic by default
authorJérémy Lal <kapouer@melix.org>
Thu, 29 Aug 2024 08:25:23 +0000 (10:25 +0200)
committerJérémy Lal <kapouer@melix.org>
Thu, 29 Aug 2024 08:25:23 +0000 (10:25 +0200)
Last-Update: 2019-10-25
Forwarded: not-needed
Bug: https://github.com/nodejs/node/pull/28532
Bug: https://github.com/nodejs/node/issues/30093

This avoids surprises on mips*el/ppc*el

Gbp-Pq: Topic build
Gbp-Pq: Name flag_atomic.patch

node.gypi

index e908076aed279aeb0d3161707cf0d22d6354e6ea..20ec79a64d5e787a4e94e9d659e16f798bc3b738 100644 (file)
--- a/node.gypi
+++ b/node.gypi
       'libraries!': [
         '-lrt'
       ],
+      'libraries': [
+        '-latomic'
+      ]
     }],
     [ 'OS in "freebsd linux"', {
       'ldflags': [ '-Wl,-z,relro',