From 7ec558cb243c7ffc3a120e29dc43ed9045a8b0a0 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Thu, 26 Sep 2019 15:17:30 -0700 Subject: build: do not link against librt on linux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: Ruben Bridgewater Reviewed-By: Michael Dawson Reviewed-By: James M Snell --- node.gypi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'node.gypi') 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' ] -- cgit v1.2.3