build: link libatomic on mac and linux

Fixes https://github.com/nodejs/node/issues/28231

PR-URL: https://github.com/nodejs/node/pull/28232
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Gus Caplan authored and Michaël Zasso committed 2019-07-02 09:07:44 +02:00
1 parent 0044fd2642
commit 4d12cef2a5
1 file changed
+3
+3
View File
@@ -289,6 +289,9 @@
'-Wl,-bnoerrmsg',
],
}],
['(OS=="linux" or OS=="mac") and llvm_version!=0', {
'libraries': ['-latomic'],
}],
],
},