From 5fc6e130d0afbb65ed3ae40ac300f92c7e73c16d Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Fri, 14 Jun 2019 16:03:48 -0500 Subject: build: link libatomic on mac and linux Fixes https://github.com/nodejs/node/issues/28231 --- node.gyp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'node.gyp') diff --git a/node.gyp b/node.gyp index 77ef85c784..9a5556c2ef 100644 --- a/node.gyp +++ b/node.gyp @@ -289,6 +289,9 @@ '-Wl,-bnoerrmsg', ], }], + ['(OS=="linux" or OS=="mac") and llvm_version!=0', { + 'libraries': ['-latomic'], + }], ], }, -- cgit v1.2.1