Skip to content

Commit

Permalink
build: add /opt/freeware/... to AIX library path
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
Stewart X Addison authored and MylesBorins committed Jan 24, 2017
1 parent ccbb7c4 commit 5e54536
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -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'],

Expand Down

0 comments on commit 5e54536

Please sign in to comment.