OSDN Git Service

configure: mips: Support both-endian compilers
authorLuca Barbato <lu_zero@gentoo.org>
Mon, 18 Jan 2016 16:03:28 +0000 (17:03 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 19 Jan 2016 19:47:49 +0000 (20:47 +0100)
Use mips{,64}eb to force big endian and mips{,64}el to force little
endian.

configure

index d776d0e..4c14163 100755 (executable)
--- a/configure
+++ b/configure
@@ -3320,6 +3320,16 @@ case "$arch" in
         arch="arm"
     ;;
     mips*|IP*)
+        case "$arch" in
+        *el)
+            add_cppflags -EL
+            add_ldflags -EL
+        ;;
+        *eb)
+            add_cppflags -EB
+            add_ldflags -EB
+        ;;
+        esac
         arch="mips"
     ;;
     parisc*|hppa*)