aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/ninjabackend.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2022-02-14 22:02:35 +0530
committerEli Schwartz <eschwartz93@gmail.com>2022-02-14 23:30:24 -0500
commit2d56ff135e6e0f3cdf455797a6561796a8c1b7b4 (patch)
tree26078410b16d584f0e02b72181d4f98b7b34bb6c /mesonbuild/backend/ninjabackend.py
parent39f61795ca1ae7de3c4c1fc08f88b3d864502cec (diff)
downloadmeson-2d56ff135e6e0f3cdf455797a6561796a8c1b7b4.zip
meson-2d56ff135e6e0f3cdf455797a6561796a8c1b7b4.tar.gz
meson-2d56ff135e6e0f3cdf455797a6561796a8c1b7b4.tar.bz2
shared module: Allow linking on Android
Android requires shared modules that use symbols from other shared modules to be linked before they can be dlopen()ed in the correct order. Not doing so leads to a missing symbol error: https://github.com/android/ndk/issues/201 We need to always allow linking for this. Also add a soname, although it's not confirmed that it's needed, and it doesn't really hurt if it isn't needed.
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r--mesonbuild/backend/ninjabackend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index f4df789..560fe53 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -2792,7 +2792,7 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485'''))
commands += linker.get_std_shared_lib_link_args()
# All shared libraries are PIC
commands += linker.get_pic_args()
- if not isinstance(target, build.SharedModule) or target.backwards_compat_want_soname:
+ if not isinstance(target, build.SharedModule) or target.force_soname:
# Add -Wl,-soname arguments on Linux, -install_name on OS X
commands += linker.get_soname_args(
self.environment, target.prefix, target.name, target.suffix,