summaryrefslogtreecommitdiff
path: root/configure
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 /configure
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 'configure')
-rwxr-xr-xconfigure9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure b/configure
index 88be15abdb..82e0c2897e 100755
--- a/configure
+++ b/configure
@@ -848,7 +848,14 @@ def configure_node(o):
o['variables']['node_no_browser_globals'] = b(options.no_browser_globals)
o['variables']['node_shared'] = b(options.shared)
node_module_version = getmoduleversion.get_version()
- shlib_suffix = '%s.dylib' if sys.platform == 'darwin' else 'so.%s'
+
+ if sys.platform == 'darwin':
+ shlib_suffix = '%s.dylib'
+ elif sys.platform.startswith('aix'):
+ shlib_suffix = '%s.a'
+ else:
+ shlib_suffix = 'so.%s'
+
shlib_suffix %= node_module_version
o['variables']['node_module_version'] = int(node_module_version)
o['variables']['shlib_suffix'] = shlib_suffix