Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 48769d0434
Fetching contributors…

Cannot retrieve contributors at this time

84 lines (81 sloc) 2.984 kb
--- a/spatialite.c
+++ b/spatialite.c
@@ -81,10 +81,10 @@ extern const char * locale_charset (void);
#include <localcharset.h>
#endif /* end localcharset */
#else /* not WINDOWS */
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__ANDROID__)
#include <iconv.h>
#include <localcharset.h>
-#else /* not Mac OsX */
+#else /* neither Mac OsX nor Android */
#include <iconv.h>
#include <langinfo.h>
#endif
@@ -8750,9 +8750,9 @@ gaiaGetLocaleCharset ()
#if defined(__MINGW32__) || defined(_WIN32)
return locale_charset ();
#else /* not MINGW32 - WIN32 */
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__ANDROID__)
return locale_charset ();
-#else /* not Mac OsX */
+#else /* neither Mac OsX nor Android */
return nl_langinfo (CODESET);
#endif
#endif
diff --git a/configure b/configure
index 0bca8b1..deb40a2 100755
--- a/configure
+++ b/configure
@@ -11971,8 +11971,17 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
version_type=linux
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.
+ 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
@@ -15808,8 +15817,17 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
version_type=linux
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.
+ 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
--- a/Makefile.in
+++ b/Makefile.in
@@ -287,7 +287,7 @@ libspatialite_la_SOURCES = spatialite.c \
@MINGW_FALSE@libspatialite_la_LDFLAGS = -version-info 4:0:2
@MINGW_TRUE@libspatialite_la_LDFLAGS = -version-info 4:0:2 -no-undefined
-@MINGW_FALSE@libspatialite_la_LIBADD = -lpthread -ldl
+@MINGW_FALSE@libspatialite_la_LIBADD = -ldl
@MINGW_TRUE@libspatialite_la_LIBADD =
AUTOMAKE_OPTIONS = dist-zip
EXTRA_DIST = makefile.vc nmake.opt
Jump to Line
Something went wrong with that request. Please try again.