Permalink
Browse files

build: add /opt/freeware/... to AIX library path

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: #10128
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
1 parent 797d9a8 commit ad5ae922cec6b00fac9ff1abe79f799e51d4972b @sxa555 sxa555 committed with evanlucas Dec 13, 2016
Showing with 10 additions and 0 deletions.
  1. +10 −0 node.gyp
View
@@ -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'],

0 comments on commit ad5ae92

Please sign in to comment.