File sunpinyin-aarch64.patch of Package sunpinyin
Index: sunpinyin-2.0.4/SConstruct
===================================================================
--- sunpinyin-2.0.4.orig/SConstruct
+++ sunpinyin-2.0.4/SConstruct
@@ -242,6 +242,7 @@ def AppendEndianCheck(conf):
|| defined(_POWER) || defined(__powerpc__) \
|| defined(__ppc__) || defined(__hpux) || defined(__hppa) \
|| defined(_MIPSEB) || defined(_POWER) \
+ || defined(__AARCH64EB__) \
|| defined(__s390__) || (defined(__sh__) && defined(__BIG_ENDIAN__))
# define WORDS_BIGENDIAN 1
@@ -253,6 +254,7 @@ def AppendEndianCheck(conf):
|| defined(__x86_64) || defined(__x86_64__) \
|| defined(_M_X64) || defined(__bfin__) \
|| defined(__alpha__) || defined(__ARMEL__) \
+ || defined(__AARCH64EL__) \
|| defined(_MIPSEL) || (defined(__sh__) && defined(__LITTLE_ENDIAN__))
# undef WORDS_BIGENDIAN