Skip to content

Commit ad5ae92

Browse files
Stewart X Addisonevanlucas
Stewart X Addison
authored andcommitted
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 <[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]>
1 parent 797d9a8 commit ad5ae92

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

node.gyp

+10
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,16 @@
951951
}, {
952952
'type': 'executable',
953953
}],
954+
['target_arch=="ppc64"', {
955+
'ldflags': [
956+
'-Wl,-blibpath:/usr/lib:/lib:/opt/freeware/lib/pthread/ppc64'
957+
],
958+
}],
959+
['target_arch=="ppc"', {
960+
'ldflags': [
961+
'-Wl,-blibpath:/usr/lib:/lib:/opt/freeware/lib/pthread'
962+
],
963+
}]
954964
],
955965
'dependencies': ['<(node_core_target_name)', 'node_exp'],
956966

0 commit comments

Comments
 (0)