Link to -latomic by default
authorJérémy Lal <kapouer@melix.org>
Thu, 4 Jun 2020 00:35:16 +0000 (01:35 +0100)
committerJérémy Lal <kapouer@melix.org>
Thu, 4 Jun 2020 00:35:16 +0000 (01:35 +0100)
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: Name atomic.patch

node.gypi

index 466a1746811cfac1a8ce4ef604ef1152c6229ff1..dfba39e051cc04d46d6ae4a9cda269033dc9cf34 100644 (file)
--- a/node.gypi
+++ b/node.gypi
         '-lkvm',
       ],
     }],
+    [ 'OS=="linux"', {
+      'libraries': [
+        '-latomic',
+      ],
+    }],
     [ 'OS=="aix"', {
       'defines': [
         '_LINUX_SOURCE_COMPAT',