configure: Add a SONAME entry for the android target
authorLuca Barbato <lu_zero@gentoo.org>
Thu, 29 Oct 2015 13:01:07 +0000 (14:01 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 30 Oct 2015 12:02:02 +0000 (13:02 +0100)
In order to load libraries in Android they need to be unversioned.
The android target section was derived from the BSD ones, and they
that simply drop the SONAME

Android M requires to have a SONAME entry but unversioned.

configure

index 7e80f9a..f5a9a26 100755 (executable)
--- a/configure
+++ b/configure
@@ -3591,8 +3591,7 @@ case $target_os in
         enable section_data_rel_ro
         SLIB_INSTALL_NAME='$(SLIBNAME)'
         SLIB_INSTALL_LINKS=
-        # soname not set on purpose
-        SHFLAGS=-shared
+        SHFLAGS='-shared -Wl,-soname,$(SLIBNAME)'
         ;;
     haiku)
         prefix_default="/boot/common"