Skip to content

Commit 13f9356

Browse files
richardlauBethGriggs
authored andcommitted
build: set -blibpath: for AIX
#17604 refactored the gyp files so that `-blibpath:` on AIX was only set if `node_shared=="true"`. Restore the setting for non-shared builds. Fixes: #25444 PR-URL: #25447 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 5a81a4f commit 13f9356

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

common.gypi

+20-2
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,17 @@
117117
'cflags': [ '-gxcoff' ],
118118
'ldflags': [ '-Wl,-bbigtoc' ],
119119
'conditions': [
120+
['target_arch=="ppc64"', {
121+
'ldflags': [
122+
'-Wl,-blibpath:/usr/lib:/lib:'
123+
'/opt/freeware/lib/pthread/ppc64'
124+
],
125+
}],
126+
['target_arch=="ppc"', {
127+
'ldflags': [
128+
'-Wl,-blibpath:/usr/lib:/lib:/opt/freeware/lib/pthread'
129+
],
130+
}],
120131
['"<(real_os_name)"=="OS400"', {
121132
'ldflags': [
122133
'-Wl,-blibpath:/QOpenSys/pkgs/lib:/QOpenSys/usr/lib',
@@ -421,11 +432,18 @@
421432
'variables': {'real_os_name': '<!(uname -s)',},
422433
'conditions': [
423434
[ 'target_arch=="ppc"', {
424-
'ldflags': [ '-Wl,-bmaxdata:0x60000000/dsa' ],
435+
'ldflags': [
436+
'-Wl,-bmaxdata:0x60000000/dsa',
437+
'-Wl,-blibpath:/usr/lib:/lib:/opt/freeware/lib/pthread',
438+
],
425439
}],
426440
[ 'target_arch=="ppc64"', {
427441
'cflags': [ '-maix64' ],
428-
'ldflags': [ '-maix64' ],
442+
'ldflags': [
443+
'-maix64',
444+
'-Wl,-blibpath:/usr/lib:/lib:'
445+
'/opt/freeware/lib/pthread/ppc64',
446+
],
429447
}],
430448
['"<(real_os_name)"=="OS400"', {
431449
'ldflags': [

0 commit comments

Comments
 (0)