summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGus Caplan <me@gus.host>2019-06-14 16:03:48 -0500
committerGus Caplan <me@gus.host>2019-06-18 13:41:35 -0500
commit5fc6e130d0afbb65ed3ae40ac300f92c7e73c16d (patch)
tree0eac48ce2b83fdefd04829a095bd52892d24224e
parent2a9f1ad4b0c725e0362d33e265dc22271c3466e7 (diff)
downloadnode-new-fix-atomic-linkage.tar.gz
build: link libatomic on mac and linuxfix-atomic-linkage
Fixes https://github.com/nodejs/node/issues/28231
-rw-r--r--node.gyp3
1 files changed, 3 insertions, 0 deletions
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'],
+ }],
],
},