File sunpinyin-aarch64.patch of Package sunpinyin
Index: sunpinyin-2.0.4+git20150706.cf18102/SConstruct
===================================================================
--- sunpinyin-2.0.4+git20150706.cf18102.orig/SConstruct
+++ sunpinyin-2.0.4+git20150706.cf18102/SConstruct
@@ -320,6 +320,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__)) \
|| defined(__AARCH64EB__)
# define WORDS_BIGENDIAN 1
@@ -332,6 +333,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__)) \
|| defined(__AARCH64EL__)
# undef WORDS_BIGENDIAN