~ubuntu-branches/ubuntu/quantal/sunpinyin/quantal

« back to all changes in this revision

Viewing changes to debian/patches/fix-ftbfs-on-sh.patch

  • Committer: Bazaar Package Importer
  • Author(s): Liang Guo
  • Date: 2011-03-15 00:20:57 UTC
  • mfrom: (1.1.2 upstream) (1.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110315002057-k8qf3ybnqtuaf0u1
Tags: 2.0.3-2
* Build with prefix=$(DEB_DESTDIR)/usr (Close: #617752)
* Fix FTBFS on SH (Close: #617753)
* Fix FTBFS on MIPSEL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Fix FTBFS on SuperH platform, thanks to Nobuhiro Iwamatsu. 
 
2
--- a/SConstruct
 
3
+++ b/SConstruct
 
4
@@ -230,7 +230,7 @@
 
5
   || defined(_POWER)   || defined(__powerpc__) \
 
6
   || defined(__ppc__)  || defined(__hpux) || defined(__hppa) \
 
7
   || defined(_MIPSEB)  || defined(_POWER) \
 
8
-  || defined(__s390__)
 
9
+  || defined(__s390__) || (defined(__sh__) && defined(__BIG_ENDIAN__))
 
10
 # define WORDS_BIGENDIAN 1
 
11
 
 
12
 #elif defined(__i386__) || defined(__i386) \
 
13
@@ -240,7 +240,8 @@
 
14
   || defined(__amd64__) || defined(_M_AMD64) \
 
15
   || defined(__x86_64)  || defined(__x86_64__) \
 
16
   || defined(_M_X64)    || defined(__bfin__) \
 
17
-  || defined(__alpha__) || defined(__ARMEL__)
 
18
+  || defined(__alpha__) || defined(__ARMEL__) \
 
19
+  || (defined(__sh__) && defined(__LITTLE_ENDIAN__))
 
20
 # undef WORDS_BIGENDIAN
 
21
 
 
22
 #else