diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-08-07 23:22:55 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-08-07 23:22:55 +0200 |
commit | 88fc7fa264eaf7d4456ddd98b41cd52f8753c9f2 (patch) | |
tree | da9c36031f6b403033963b75e7e45e9d9cb4f996 | |
parent | 0feffa6d47f6d8f1a34637147af54110c590d350 (diff) | |
download | android-node-v8-88fc7fa264eaf7d4456ddd98b41cd52f8753c9f2.tar.gz android-node-v8-88fc7fa264eaf7d4456ddd98b41cd52f8753c9f2.tar.bz2 android-node-v8-88fc7fa264eaf7d4456ddd98b41cd52f8753c9f2.zip |
fix extension of dynamic library for android
-rwxr-xr-x | configure.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/configure.py b/configure.py index a791efebbc..4dbc99358f 100755 --- a/configure.py +++ b/configure.py @@ -1100,14 +1100,18 @@ def configure_node(o): o['variables']['node_shared'] = b(options.shared) node_module_version = getmoduleversion.get_version() - if sys.platform == 'darwin': - shlib_suffix = '%s.dylib' - elif sys.platform.startswith('aix'): - shlib_suffix = '%s.a' + if options.dest_os == 'android': + shlib_suffix = "so" else: shlib_suffix = '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 - shlib_suffix %= node_module_version o['variables']['node_module_version'] = int(node_module_version) o['variables']['shlib_suffix'] = shlib_suffix |