From 3d8721f0a4cc9ad2b3db992c80379c61ee1ec3fe Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Thu, 27 Jun 2024 17:28:45 +0100 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. PR-URL: https://github.com/nodejs/node/pull/53585 Reviewed-By: Luigi Pinca Reviewed-By: Beth Griggs --- common.gypi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common.gypi b/common.gypi index 0af8af37c6cf02..af4e8fc1f2815b 100644 --- a/common.gypi +++ b/common.gypi @@ -554,6 +554,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', ], }], ],