From a79c81a7344ddada5470c3a7318e8b4fe9cb5f35 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Tue, 25 Jun 2024 16:08:27 +0000 Subject: [PATCH] build: add version-specific library path for AIX Add the version-specific directory containing the C/C++ runtime libraries to `-blibpath` on AIX. This will help link `node` against the correct libraries at run-time when compiled with a different version of the GNU C/C++ compiler without having to manually set a `LIBPATH` environment variable. --- common.gypi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common.gypi b/common.gypi index 5a240673eadb1a..154bbf2a0df0cb 100644 --- a/common.gypi +++ b/common.gypi @@ -579,6 +579,9 @@ '-Wl,-brtl', ], }, { # else it's `AIX` + 'variables': { + 'gcc_major': '(gcc_major)/pthread/ppc64:/opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/>(gcc_major)/pthread/ppc64:/opt/freeware/lib/pthread/ppc64', ], }], ],