summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-07 23:22:55 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-07 23:22:55 +0200
commit88fc7fa264eaf7d4456ddd98b41cd52f8753c9f2 (patch)
treeda9c36031f6b403033963b75e7e45e9d9cb4f996
parent0feffa6d47f6d8f1a34637147af54110c590d350 (diff)
downloadandroid-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-xconfigure.py14
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