From 13f9356b046c0015843f21338eaa22b2bcdb57e2 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 fa9589e803966c..4c643398ac222b 100644 --- a/common.gypi +++ b/common.gypi @@ -117,6 +117,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', @@ -421,11 +432,18 @@ 'variables': {'real_os_name': '