From 5fc6e130d0afbb65ed3ae40ac300f92c7e73c16d 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 77ef85c784df04..9a5556c2eff40d 100644 --- a/node.gyp +++ b/node.gyp @@ -289,6 +289,9 @@ '-Wl,-bnoerrmsg', ], }], + ['(OS=="linux" or OS=="mac") and llvm_version!=0', { + 'libraries': ['-latomic'], + }], ], },