Skip to content

Commit 8170f4f

Browse files
ThePrezmhdawson
authored andcommitted
build: add support for IBM i platform
PR-URL: #19667 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 5e68172 commit 8170f4f

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

common.gypi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,17 @@
9494
'msvs_configuration_platform': 'x64',
9595
}],
9696
['OS=="aix"', {
97+
'variables': {'real_os_name': '<!(uname -s)',},
9798
'cflags': [ '-gxcoff' ],
9899
'ldflags': [ '-Wl,-bbigtoc' ],
100+
'conditions': [
101+
['"<(real_os_name)"=="OS400"', {
102+
'ldflags': [
103+
'-Wl,-blibpath:/QOpenSys/pkgs/lib:/QOpenSys/usr/lib',
104+
'-Wl,-brtl',
105+
],
106+
}],
107+
],
99108
}],
100109
['OS == "android"', {
101110
'cflags': [ '-fPIE' ],
@@ -345,6 +354,7 @@
345354
'ldflags!': [ '-pthread' ],
346355
}],
347356
[ 'OS=="aix"', {
357+
'variables': {'real_os_name': '<!(uname -s)',},
348358
'conditions': [
349359
[ 'target_arch=="ppc"', {
350360
'ldflags': [ '-Wl,-bmaxdata:0x60000000/dsa' ],
@@ -353,6 +363,12 @@
353363
'cflags': [ '-maix64' ],
354364
'ldflags': [ '-maix64' ],
355365
}],
366+
['"<(real_os_name)"=="OS400"', {
367+
'ldflags': [
368+
'-Wl,-blibpath:/QOpenSys/pkgs/lib:/QOpenSys/usr/lib',
369+
'-Wl,-brtl',
370+
],
371+
}],
356372
],
357373
'ldflags': [ '-Wl,-bbigtoc' ],
358374
'ldflags!': [ '-rdynamic' ],

node.gyp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,7 @@
970970

971971
'conditions': [
972972
[ 'OS=="aix" and node_shared=="true"', {
973+
'variables': {'real_os_name': '<!(uname -s)',},
973974
'targets': [
974975
{
975976
'target_name': 'node_aix_shared',
@@ -988,7 +989,14 @@
988989
'ldflags': [
989990
'-Wl,-blibpath:/usr/lib:/lib:/opt/freeware/lib/pthread'
990991
],
991-
}]
992+
}],
993+
['"<(real_os_name)"=="OS400"', {
994+
'ldflags': [
995+
'-Wl,-blibpath:/QOpenSys/pkgs/lib:/QOpenSys/usr/lib',
996+
'-Wl,-bbigtoc',
997+
'-Wl,-brtl',
998+
],
999+
}],
9921000
],
9931001
'includes': [
9941002
'node.gypi'

0 commit comments

Comments
 (0)