summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorStewart Addison <sxa@uk.ibm.com>2016-11-14 13:43:41 +0000
committerMichael Dawson <michael_dawson@ca.ibm.com>2016-11-22 14:22:22 -0500
commit1bd871655a8b76fa3be1e3c6c325efa74c86fcd9 (patch)
treeb307a1273e9a5d798d2d1b873c6fa04bdf46fac7 /node.gyp
parent625a2716c6fccfb1ff0006e11ab82bd05ab48168 (diff)
downloadandroid-node-v8-1bd871655a8b76fa3be1e3c6c325efa74c86fcd9.tar.gz
android-node-v8-1bd871655a8b76fa3be1e3c6c325efa74c86fcd9.tar.bz2
android-node-v8-1bd871655a8b76fa3be1e3c6c325efa74c86fcd9.zip
build: add shared library support to AIX build
Updates to build the shared library version of node on AIX. Adds the same functionality to AIX that was added on Linux under this: Ref: https://github.com/nodejs/node/pull/6994/ PR-URL: https://github.com/nodejs/node/pull/9675 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp10
1 files changed, 9 insertions, 1 deletions
diff --git a/node.gyp b/node.gyp
index 2254a6e891..f59037737c 100644
--- a/node.gyp
+++ b/node.gyp
@@ -928,7 +928,15 @@
'targets': [
{
'target_name': 'node',
- 'type': 'executable',
+ 'conditions': [
+ ['node_shared=="true"', {
+ 'type': 'shared_library',
+ 'ldflags': ['--shared'],
+ 'product_extension': '<(shlib_suffix)',
+ }, {
+ 'type': 'executable',
+ }],
+ ],
'dependencies': ['<(node_core_target_name)', 'node_exp'],
'include_dirs': [