Files
kiwix-build/patches/icu4c_android_elf64_st_info.patch
Matthieu Gautier 6d7adf0f04 Add a patch for icu4c on android 64 bits.
On recent version of the NDK (r13b), `exec_elf.h` has been removed for
API level >= 20. On 64 bits, we need the API level 21, and then,
a defined (ELF64_ST_INFO) is missing.

We readd it where (and if) we need it.
2017-03-13 13:18:14 +01:00

14 lines
504 B
Diff

diff -ur icu4c-58_2/source/tools/toolutil/pkg_genc.c icu4c-58_2.patched/source/tools/toolutil/pkg_genc.c
--- icu4c-58_2/source/tools/toolutil/pkg_genc.c 2016-06-15 20:58:17.000000000 +0200
+++ icu4c-58_2.patched/source/tools/toolutil/pkg_genc.c 2017-02-27 10:23:39.985471339 +0100
@@ -35,6 +35,9 @@
# define EM_X86_64 62
# endif
# define ICU_ENTRY_OFFSET 0
+# ifndef ELF64_ST_INFO
+# define ELF64_ST_INFO(b,t) (((b) << 4) + ((t) & 0xf))
+# endif
#endif
#include <stdio.h>