aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Gorzinski <jgorzinski@gmail.com>2018-03-28 20:47:14 -0500
committerMichael Dawson <michael_dawson@ca.ibm.com>2018-04-10 10:56:46 -0400
commit8170f4f4631739290c92cf8ab37cd625371123f0 (patch)
treea4247803c631352c20239aedfe43eb8f55f5c4fc
parent5e6817261c559390f8a6736fb33e7715f6dfbd16 (diff)
downloadandroid-node-v8-8170f4f4631739290c92cf8ab37cd625371123f0.tar.gz
android-node-v8-8170f4f4631739290c92cf8ab37cd625371123f0.tar.bz2
android-node-v8-8170f4f4631739290c92cf8ab37cd625371123f0.zip
build: add support for IBM i platform
PR-URL: https://github.com/nodejs/node/pull/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>
-rw-r--r--common.gypi16
-rw-r--r--node.gyp10
2 files changed, 25 insertions, 1 deletions
diff --git a/common.gypi b/common.gypi
index 7953404fae..65ba80a15d 100644
--- a/common.gypi
+++ b/common.gypi
@@ -94,8 +94,17 @@
'msvs_configuration_platform': 'x64',
}],
['OS=="aix"', {
+ 'variables': {'real_os_name': '<!(uname -s)',},
'cflags': [ '-gxcoff' ],
'ldflags': [ '-Wl,-bbigtoc' ],
+ 'conditions': [
+ ['"<(real_os_name)"=="OS400"', {
+ 'ldflags': [
+ '-Wl,-blibpath:/QOpenSys/pkgs/lib:/QOpenSys/usr/lib',
+ '-Wl,-brtl',
+ ],
+ }],
+ ],
}],
['OS == "android"', {
'cflags': [ '-fPIE' ],
@@ -345,6 +354,7 @@
'ldflags!': [ '-pthread' ],
}],
[ 'OS=="aix"', {
+ 'variables': {'real_os_name': '<!(uname -s)',},
'conditions': [
[ 'target_arch=="ppc"', {
'ldflags': [ '-Wl,-bmaxdata:0x60000000/dsa' ],
@@ -353,6 +363,12 @@
'cflags': [ '-maix64' ],
'ldflags': [ '-maix64' ],
}],
+ ['"<(real_os_name)"=="OS400"', {
+ 'ldflags': [
+ '-Wl,-blibpath:/QOpenSys/pkgs/lib:/QOpenSys/usr/lib',
+ '-Wl,-brtl',
+ ],
+ }],
],
'ldflags': [ '-Wl,-bbigtoc' ],
'ldflags!': [ '-rdynamic' ],
diff --git a/node.gyp b/node.gyp
index 0f6c160969..e2e6842c4f 100644
--- a/node.gyp
+++ b/node.gyp
@@ -970,6 +970,7 @@
'conditions': [
[ 'OS=="aix" and node_shared=="true"', {
+ 'variables': {'real_os_name': '<!(uname -s)',},
'targets': [
{
'target_name': 'node_aix_shared',
@@ -988,7 +989,14 @@
'ldflags': [
'-Wl,-blibpath:/usr/lib:/lib:/opt/freeware/lib/pthread'
],
- }]
+ }],
+ ['"<(real_os_name)"=="OS400"', {
+ 'ldflags': [
+ '-Wl,-blibpath:/QOpenSys/pkgs/lib:/QOpenSys/usr/lib',
+ '-Wl,-bbigtoc',
+ '-Wl,-brtl',
+ ],
+ }],
],
'includes': [
'node.gypi'