wscript: add proper non-version'd SONAME for Android

This seems to have become a requirement since API target 23+, and
matches what FFmpeg does.
This commit is contained in:
Jan Ekström 2016-07-29 01:03:19 +03:00 committed by wm4
parent f95cde60ff
commit aaf6e3b58d
1 changed files with 7 additions and 1 deletions

View File

@ -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