From 8b4434a491d538c7633fcfe8c9c6f35bcfc851f2 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Thu, 26 Sep 2019 15:38:51 -0700 Subject: [PATCH] deps: do not link against librt It is not needed, and causes an unnecessary runtime dependency with some linkers, such as devtoolset-6 on centos7-ppc64le. See: https://github.com/nodejs/node/issues/29718 --- deps/uv/uv.gyp | 2 +- deps/v8/gypfiles/v8.gyp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/deps/uv/uv.gyp b/deps/uv/uv.gyp index 0836dd27f2b72a..454751b491480d 100644 --- a/deps/uv/uv.gyp +++ b/deps/uv/uv.gyp @@ -244,7 +244,7 @@ 'src/unix/sysinfo-memory.c', ], 'link_settings': { - 'libraries': [ '-ldl', '-lrt' ], + 'libraries': [ '-ldl' ], }, }], [ 'OS=="android"', { diff --git a/deps/v8/gypfiles/v8.gyp b/deps/v8/gypfiles/v8.gyp index e7ea54c39b076f..f339bbfcf800be 100644 --- a/deps/v8/gypfiles/v8.gyp +++ b/deps/v8/gypfiles/v8.gyp @@ -1975,8 +1975,7 @@ # library order and break (see crbug.com/469973). # These libraries do not exist on Mac hosted builds. 'libraries': [ - '-ldl', - '-lrt' + '-ldl' ] }] ]