diff options
author | est31 <MTest31@outlook.com> | 2015-07-29 11:54:27 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-07-29 15:59:06 +0200 |
commit | eb3aac20c879b9532cd3b678efb2126adcd07af7 (patch) | |
tree | 93ebffb360dcc45fdd687519cd054926c14cc743 /build/android/libiconv_android_mk.patch | |
parent | f97c2702a2fee9496059169448ce97ed2b7da9b2 (diff) | |
download | minetest-eb3aac20c879b9532cd3b678efb2126adcd07af7.tar.gz minetest-eb3aac20c879b9532cd3b678efb2126adcd07af7.tar.bz2 minetest-eb3aac20c879b9532cd3b678efb2126adcd07af7.zip |
Android: fix horrible libiconv build
Before, our libiconv build was a joke. We first called configure for our own build host system,
then called make, before we executed a Android.mk script we provided as patch. The first "native make"
always failed, and the LIBICONV_LIB file setting in our Makefile didn't match the built one,
resulting in an always-rebuild of iconv.
This commit cleans up this total mess, removes the double-build, and the Android.mk, and properly calls
./configure with the according target platform, and uses a built toolchain.
As we have to deal with the android bug "NDK: Support for prebuild libs with full sonames"
https://code.google.com/p/android/issues/detail?id=55868
as the 2013 patch
https://lists.gnu.org/archive/html/libtool-patches/2013-06/msg00002.html
by Google's David Turner wasn't inside the 2011 libtool, we pass -avoid-version to
libtool.
Thanks to the proper build, wide_to_utf8 works for android now, removing us of the need to disable it.
Diffstat (limited to 'build/android/libiconv_android_mk.patch')
-rw-r--r-- | build/android/libiconv_android_mk.patch | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/build/android/libiconv_android_mk.patch b/build/android/libiconv_android_mk.patch deleted file mode 100644 index 9eb7a1915..000000000 --- a/build/android/libiconv_android_mk.patch +++ /dev/null @@ -1,51 +0,0 @@ -From fe27aae178d65b06d5f4104158343b0d2d33e3f0 Mon Sep 17 00:00:00 2001 -From: Pierre Zurek <pierrezurek@gmail.com> -Date: Sat, 2 Apr 2011 23:11:57 +0200 -Subject: [PATCH] Added Android.mk. - -This makefile first executes the configure script, that will -generate the config.h files necessary to build iconv. ---- - Android.mk | 29 +++++++++++++++++++++++++++++ - 1 file changed, 29 insertions(+) - create mode 100644 Android.mk - -diff --git a/jni/Android.mk b/jni/Android.mk -new file mode 100644 -index 0000000..799b22d ---- /dev/null -+++ b/jni/Android.mk -@@ -0,0 +1,32 @@ -+LOCAL_PATH := $(call my-dir) -+include $(CLEAR_VARS) -+ -+LOCAL_ARM_MODE := arm -+ -+LOCAL_SRC_FILES := src/lib/iconv.c \ -+ src/libcharset/lib/localcharset.c \ -+ src/lib/relocatable.c -+ -+LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/include \ -+ $(LOCAL_PATH)/src/libcharset \ -+ $(LOCAL_PATH)/src/libcharset/include -+ -+LOCAL_CFLAGS := \ -+ -DLIBDIR="\"c\"" \ -+ -D_ANDROID \ -+ -DBUILDING_LIBCHARSET \ -+ -DBUILDING_LIBICONV \ -+ -DBUILDING_LIBICONV \ -+ -DIN_LIBRARY -+ -+LOCAL_MODULE:= iconv -+ -+$(info Configuring iconv...) -+COMMAND := $(shell \ -+ export PATH=$(TOOLCHAIN_INSTALL_DIR)/bin:$$PATH; \ -+ cd $(LOCAL_PATH); \ -+ make distclean; \ -+ ./configure --host="arm-linux-androideabi") -+$(info iconv configured.) -+ -+include $(BUILD_STATIC_LIBRARY) -+ |