diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2019-09-27 01:17:30 +0300 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2019-10-02 00:28:00 +0300 |
commit | 7ec558cb243c7ffc3a120e29dc43ed9045a8b0a0 (patch) | |
tree | ec974ec48b8b52133efc227f66bd22aef5459ec9 /node.gypi | |
parent | f3ae3c9e3d2837bdbb21839e53498149b482449c (diff) |
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.gypi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/node.gypi b/node.gypi index f1a29f5277b..6954352b5e9 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' ] |