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>
pull/28360/head
Gus Caplan 2019-06-14 16:03:48 -05:00
parent e6edd66c10
commit ab3174ca08
No known key found for this signature in database
GPG Key ID: F00BD11880E82F0E
1 changed files with 3 additions and 0 deletions

View File

@ -289,6 +289,9 @@
'-Wl,-bnoerrmsg',
],
}],
['(OS=="linux" or OS=="mac") and llvm_version!=0', {
'libraries': ['-latomic'],
}],
],
},