I try again, lets see if this patch can be applied.
ciao
Marco


-------- Original Message --------
Subject: Fwd: android support
Date: Fri, 04 May 2012 16:48:51 +0200
From: Marco Bernasocchi <ma...@bernawebdesign.ch>
Organization: bernawebdesign.ch
To: libtool-patc...@gnu.org

Hi guys, I never heard back, did this make it throug?
thanks

-------- Original Message --------
Subject: android support
Date: Wed, 23 Nov 2011 02:23:46 +0100
From: Marco Bernasocchi <ma...@bernawebdesign.ch>
To: libtool-patc...@gnu.org

Hi all,
I hope i'm writing to the right list. In the process of poring QGIS to
android I encountred a big limitation. The android system does not
support versioned shared libs. I wrote the attached patch and used it in
the configure scripts of 6 different libs (geos, proj, gsl, expat, gdal,
libiconv) with success.
I think more and more people will start soon porting more libs to
android, so it would be nice to have this in libtool. the crosscompiler
host call to use is: --host=arm-linux-androideabi

Thanks a lot for the great tool
Marco Bernasocchi

www.opengis.ch




diff --git a/m4/libtool.m4 b/m4/libtool.m4
index a9e20cf..a5cc8eb 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -2642,8 +2642,17 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
   version_type=linux # correct to gnu/linux during the next big refactor
   need_lib_prefix=no
   need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
+  case $host_os in
+  # This must be Linux Android ELF which has no support for versioned libs.
+  linux-android*)
+    library_names_spec='$libname${shared_ext}'
+    soname_spec='${libname}${shared_ext}'
+    ;;
+  *)  
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+    soname_spec='${libname}${release}${shared_ext}$major'
+    ;;
+  esac
   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   shlibpath_var=LD_LIBRARY_PATH
   shlibpath_overrides_runpath=no


_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool

Reply via email to