summaryrefslogtreecommitdiff
path: root/node.gypi
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2019-09-26 15:17:30 -0700
committerSam Roberts <vieuxtech@gmail.com>2019-10-01 14:28:00 -0700
commit7ec558cb243c7ffc3a120e29dc43ed9045a8b0a0 (patch)
treeec974ec48b8b52133efc227f66bd22aef5459ec9 /node.gypi
parentf3ae3c9e3d2837bdbb21839e53498149b482449c (diff)
downloadandroid-node-v8-7ec558cb243c7ffc3a120e29dc43ed9045a8b0a0.tar.gz
android-node-v8-7ec558cb243c7ffc3a120e29dc43ed9045a8b0a0.tar.bz2
android-node-v8-7ec558cb243c7ffc3a120e29dc43ed9045a8b0a0.zip
build: do not link against librt on linux
PR-URL: https://github.com/nodejs/node/pull/29727 Fixes: https://github.com/nodejs/node/issues/27377 Fixes: https://github.com/nodejs/node/issues/29718 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'node.gypi')
-rw-r--r--node.gypi5
1 files changed, 5 insertions, 0 deletions
diff --git a/node.gypi b/node.gypi
index f1a29f5277..6954352b5e 100644
--- a/node.gypi
+++ b/node.gypi
@@ -290,6 +290,11 @@
[ 'OS=="sunos"', {
'ldflags': [ '-Wl,-M,/usr/lib/ld/map.noexstk' ],
}],
+ [ 'OS=="linux"', {
+ 'libraries!': [
+ '-lrt'
+ ],
+ }],
[ 'OS in "freebsd linux"', {
'ldflags': [ '-Wl,-z,relro',
'-Wl,-z,now' ]