Update libtool to support Android.
authorWerner Koch <wk@gnupg.org>
Thu, 9 Jan 2014 14:06:32 +0000 (15:06 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 9 Jan 2014 14:16:00 +0000 (15:16 +0100)
* m4/libtool.m4: Add "linux*android*" case.  Taken from the
libgpg-error.
--

This is the libgpg-error commit

  commit bf0d67dbfa4161e529781d6dfbfcce7126c3bf22
  Author: David 'Digit' Turner <digit@google.com>
  Date:   Tue Oct 22 14:26:53 2013 +0200

m4/libtool.m4

index 4d2b7fc..93116f2 100644 (file)
@@ -2627,6 +2627,26 @@ linux*oldld* | linux*aout* | linux*coff*)
   dynamic_linker=no
   ;;
 
+linux*android*)
+  version_type=none # Android doesn't support versioned libraries.
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext'
+  soname_spec='$libname$release$shared_ext'
+  finish_cmds=
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+
+  # This implies no fast_install, which is unacceptable.
+  # Some rework will be needed to allow for fast_install
+  # before this can be enabled.
+  hardcode_into_libs=yes
+
+  dynamic_linker='Android linker'
+  # Don't embed -rpath directories since the linker doesn't support them.
+  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+  ;;
+
 # This must be glibc/ELF.
 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   version_type=linux # correct to gnu/linux during the next big refactor