From 8a6960b2c69eafcad5f1e034cc91a117707d10dc Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Fri, 14 Jun 2019 16:03:48 -0500 Subject: [PATCH] build: link libatomic on mac and linux Fixes https://github.com/nodejs/node/issues/28231 --- node.gyp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/node.gyp b/node.gyp index 56377d6a0c5e8e..7913599e4ed572 100644 --- a/node.gyp +++ b/node.gyp @@ -289,6 +289,9 @@ '-Wl,-bnoerrmsg', ], }], + ['OS=="linux" or OS=="mac"', { + 'libraries': ['-latomic'], + }], ], },