summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/wscript_build.py b/wscript_build.py
index 257be27462..ebbc3e8b8c 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -513,7 +513,13 @@ def build(ctx):
"install_path": ctx.env.LIBDIR,
}
- if not ctx.dependency_satisfied('android'):
+ if shared and ctx.dependency_satisfied('android'):
+ # for Android we just add the linker flag without version
+ # as we still need the SONAME for proper linkage.
+ # (LINKFLAGS logic taken from waf's apply_vnum in ccroot.py)
+ v=ctx.env.SONAME_ST%'libmpv.so'
+ ctx.env.append_value('LINKFLAGS',v.split())
+ else:
# for all other configurations we want SONAME to be used
libmpv_kwargs["vnum"] = libversion