Fwd: Fwd: android support

Marco Bernasocchi <[email protected]>
Newsgroups gmane.comp.gnu.libtool.patches,gmane.comp.gnu.libtool.general
Message-ID <[email protected]>
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 <[email protected]>
Organization: bernawebdesign.ch
To: [email protected]

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 <[email protected]>
To: [email protected]

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
android_support.patch (text/x-patch, 1 KB)
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.