Skip to content

Commit bd8d682

Browse files
richardlauaddaleax
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 <gpunathi@in.ibm.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent 0e1cf1e commit bd8d682

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

common.gypi

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,17 @@
148148
'cflags': [ '-gxcoff' ],
149149
'ldflags': [ '-Wl,-bbigtoc' ],
150150
'conditions': [
151+
['target_arch=="ppc64"', {
152+
'ldflags': [
153+
'-Wl,-blibpath:/usr/lib:/lib:'
154+
'/opt/freeware/lib/pthread/ppc64'
155+
],
156+
}],
157+
['target_arch=="ppc"', {
158+
'ldflags': [
159+
'-Wl,-blibpath:/usr/lib:/lib:/opt/freeware/lib/pthread'
160+
],
161+
}],
151162
['"<(real_os_name)"=="OS400"', {
152163
'ldflags': [
153164
'-Wl,-blibpath:/QOpenSys/pkgs/lib:/QOpenSys/usr/lib',
@@ -460,11 +471,18 @@
460471
'variables': {'real_os_name': '<!(uname -s)',},
461472
'conditions': [
462473
[ 'target_arch=="ppc"', {
463-
'ldflags': [ '-Wl,-bmaxdata:0x60000000/dsa' ],
474+
'ldflags': [
475+
'-Wl,-bmaxdata:0x60000000/dsa',
476+
'-Wl,-blibpath:/usr/lib:/lib:/opt/freeware/lib/pthread',
477+
],
464478
}],
465479
[ 'target_arch=="ppc64"', {
466480
'cflags': [ '-maix64' ],
467-
'ldflags': [ '-maix64' ],
481+
'ldflags': [
482+
'-maix64',
483+
'-Wl,-blibpath:/usr/lib:/lib:'
484+
'/opt/freeware/lib/pthread/ppc64',
485+
],
468486
}],
469487
['"<(real_os_name)"=="OS400"', {
470488
'ldflags': [

0 commit comments

Comments
 (0)