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' ] diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp index 00e285ec2c2025..a506a67dba6d42 100644 --- a/tools/v8_gypfiles/v8.gyp +++ b/tools/v8_gypfiles/v8.gyp @@ -795,7 +795,7 @@ }], # Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library # to implement atomic memory access - ['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc", "ppc64", "s390x"]', { + ['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc"]', { 'link_settings': { 'libraries': ['-latomic', ], },