From ad5ae922cec6b00fac9ff1abe79f799e51d4972b Mon Sep 17 00:00:00 2001 From: Stewart X Addison Date: Tue, 13 Dec 2016 19:49:00 +0000 Subject: [PATCH] build: add /opt/freeware/... to AIX library path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To ease the use of the AIX binaries, add /opt/freeware/lib/pthread{/ppc64} into the search path encoded into the library, so that any version the user has installed from the common download locations will work out of the box without having to explicitly set LIBPATH in their environment. PR-URL: https://github.com/nodejs/node/pull/10128 Reviewed-By: Michael Dawson Reviewed-By: Johan Bergström Reviewed-By: Gibson Fahnestock Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell --- node.gyp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/node.gyp b/node.gyp index e5f02d73086a09..2b720a46791b73 100644 --- a/node.gyp +++ b/node.gyp @@ -951,6 +951,16 @@ }, { 'type': 'executable', }], + ['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' + ], + }] ], 'dependencies': ['<(node_core_target_name)', 'node_exp'],