diff --git a/node.gypi b/node.gypi index f1a29f5277b575..6954352b5e9c41 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' ]