-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
5 changed files
with
47 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
--- a/srclib/stdio.in.h 2011-08-07 15:42:06.000000000 +0200 | ||
+++ b/srclib/stdio.in.h 2015-06-10 09:27:58.129056262 +0200 | ||
@@ -695,7 +696,8 @@ _GL_CXXALIASWARN (gets); | ||
@@ -695,8 +696,9 @@ _GL_CXXALIASWARN (gets); | ||
/* It is very rare that the developer ever has full control of stdin, | ||
so any use of gets warrants an unconditional warning. Assume it is | ||
always declared, since it is required by C89. */ | ||
-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); | ||
+/*_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");*/ | ||
+#define gets(a) fgets( a, sizeof(*(a)), stdin) | ||
#endif | ||
#endif | ||
|
||
|
||
#if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters