From e407478ebe5d1a981f9f68e747b128d441ebcfcd 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 5669091c90..abba4c3c76 100644 --- a/node.gyp +++ b/node.gyp @@ -958,6 +958,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'],