From a4f50a62d57f484a6441ab1c4c26f049f70ea0c5 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Fri, 11 Jan 2019 16:36:33 +0000 Subject: [PATCH] build: set `-blibpath:` for AIX https://github.com/nodejs/node/pull/17604 refactored the gyp files so that `-blibpath:` on AIX was only set if `node_shared=="true"`. Restore the setting for non-shared builds. Fixes: https://github.com/nodejs/node/issues/25444 PR-URL: https://github.com/nodejs/node/pull/25447 Reviewed-By: Gireesh Punathil Reviewed-By: Michael Dawson --- common.gypi | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/common.gypi b/common.gypi index 2a40282d211747..724d070c4caed7 100644 --- a/common.gypi +++ b/common.gypi @@ -120,6 +120,17 @@ 'cflags': [ '-gxcoff' ], 'ldflags': [ '-Wl,-bbigtoc' ], 'conditions': [ + ['target_arch=="ppc64"', { + 'ldflags': [ + '-Wl,-blibpath:/usr/lib:/lib:' + '/opt/freeware/lib/pthread/ppc64' + ], + }], + ['target_arch=="ppc"', { + 'ldflags': [ + '-Wl,-blibpath:/usr/lib:/lib:/opt/freeware/lib/pthread' + ], + }], ['"<(real_os_name)"=="OS400"', { 'ldflags': [ '-Wl,-blibpath:/QOpenSys/pkgs/lib:/QOpenSys/usr/lib', @@ -424,11 +435,18 @@ 'variables': {'real_os_name': '