From 88fc7fa264eaf7d4456ddd98b41cd52f8753c9f2 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 7 Aug 2019 23:22:55 +0200 Subject: fix extension of dynamic library for android --- configure.py | 14 +++++++++----- 1 file 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 -- cgit v1.2.3