diff options
author | Stewart Addison <sxa@uk.ibm.com> | 2016-11-14 13:43:41 +0000 |
---|---|---|
committer | Michael Dawson <michael_dawson@ca.ibm.com> | 2016-11-22 14:22:22 -0500 |
commit | 1bd871655a8b76fa3be1e3c6c325efa74c86fcd9 (patch) | |
tree | b307a1273e9a5d798d2d1b873c6fa04bdf46fac7 /configure | |
parent | 625a2716c6fccfb1ff0006e11ab82bd05ab48168 (diff) | |
download | android-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-x | configure | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |