Link to -latomic by default
authorJérémy Lal <kapouer@melix.org>
Wed, 11 May 2022 09:02:01 +0000 (10:02 +0100)
committerJérémy Lal <kapouer@melix.org>
Wed, 11 May 2022 09:02:01 +0000 (10:02 +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: Topic build
Gbp-Pq: Name flag_atomic.patch

node.gypi

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