Properly detect mipsel as little endian architecture.
Fixes FTBFS (patch mipsel_is_little_endian.diff).
This commit is contained in:
parent
12552d374a
commit
4f2ae6f526
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -1,5 +1,7 @@
|
||||
cmake (2.8.7-2) UNRELEASED; urgency=low
|
||||
|
||||
* Properly detect mipsel as little endian architecture. Fixes FTBFS (patch
|
||||
mipsel_is_little_endian.diff).
|
||||
|
||||
-- Modestas Vainius <modax@debian.org> Sun, 19 Feb 2012 13:29:30 +0200
|
||||
|
||||
|
26
debian/patches/mipsel_is_little_endian.diff
vendored
Normal file
26
debian/patches/mipsel_is_little_endian.diff
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
From: Modestas Vainius <modax@debian.org>
|
||||
Subject: KWIML: detect little endian ABI on MIPSEL
|
||||
Forwarded: yes
|
||||
Bug: http://public.kitware.com/Bug/view.php?id=12982
|
||||
Last-Update: 2012-02-19
|
||||
Origin: vendor
|
||||
|
||||
--- a/Utilities/KWIML/ABI.h.in
|
||||
+++ b/Utilities/KWIML/ABI.h.in
|
||||
@@ -380,7 +380,15 @@ suppression macro @KWIML@_ABI_NO_VERIFY
|
||||
#elif defined(__m68k__) || defined(M68000)
|
||||
# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
|
||||
|
||||
-/* MIPS */
|
||||
+/* MIPSel (MIPS little endian) */
|
||||
+#elif defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL)
|
||||
+# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_LITTLE
|
||||
+
|
||||
+/* MIPSeb (MIPS big endian) */
|
||||
+#elif defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB)
|
||||
+# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
|
||||
+
|
||||
+/* MIPS (fallback, big endian) */
|
||||
#elif defined(__mips) || defined(__mips__) || defined(__MIPS__)
|
||||
# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
|
||||
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -2,3 +2,4 @@ FindBoost_add_-lpthread_#563479.diff
|
||||
multiarch_findgtk2_fix.diff
|
||||
support_cppflags.diff
|
||||
manpage_fixes.diff
|
||||
mipsel_is_little_endian.diff
|
||||
|
Loading…
x
Reference in New Issue
Block a user