]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
android: Upgrade liboath
authorKevin Cernekee <cernekee@gmail.com>
Mon, 29 Jan 2018 06:33:58 +0000 (22:33 -0800)
committerKevin Cernekee <cernekee@gmail.com>
Mon, 12 Feb 2018 03:39:14 +0000 (19:39 -0800)
commita2aa7f752c9b421a424cca20426f92b8c892f34e
treedf1ee4976a07822efe9ed8235ec02a6b7eb90595
parent68247c32c2e7b86b3673d1bbd524b9d9101013bf
android: Upgrade liboath

liboath requires minor hacks to build with the latest NDK releases:

1) __freading() cannot be implemented, because older versions of
Bionic[0] do not keep track of the last operation on the stream.

2) Some of the autoconf checks need to be overridden from "cross" to
"yes".

3) Most of the stdio replacement code in gnulib doesn't compile,
because it requires access to internal libc structs.  The internals
are no longer exposed through NDK headers, and they vary from one
Android version to the next.

Fortunately, while these hacks would not pass muster upstream, they
are good enough for the special case of compiling liboath.

[0] https://android.googlesource.com/platform/bionic/+/android-8.1.0_r9/libc/stdio/stdio_ext.cpp#42

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
android/0001-fflush-freadahead-fseeko-Fix-for-Android.patch [deleted file]
android/Makefile