mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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>
This commit is contained in:
1 parent
52f14931a2
commit
f2b00985f0
2 files changed
+17
-2
No files matched your search
@@ -802,7 +802,14 @@ def configure_node(o):
|
||||
o['variables']['node_use_v8_platform'] = b(not options.without_v8_platform)
|
||||
o['variables']['node_use_bundled_v8'] = b(not options.without_bundled_v8)
|
||||
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
|
||||
|
||||
@@ -811,7 +811,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': [
|
||||
|
||||
Reference in new issue
Block a user