From 9e763503729450126e6c8c83eacefba7bb955c8e Mon Sep 17 00:00:00 2001 From: Stewart X Addison Date: Tue, 13 Dec 2016 19:49:00 +0000 Subject: 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(+) (limited to 'node.gyp') diff --git a/node.gyp b/node.gyp index 23a71cc96b..e23ce40758 100644 --- a/node.gyp +++ b/node.gyp @@ -935,6 +935,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'], -- cgit v1.2.1