build/config.mk : Define CPU_IS_LITTLE_ENDIAN as needed.
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 13 Jul 2014 10:35:11 +0000 (20:35 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 13 Jul 2014 10:35:14 +0000 (20:35 +1000)
Patch-from: lvqcl <lvqcl.mail@gmail.com>

build/config.mk

index 67f33a9..e539630 100644 (file)
@@ -95,9 +95,9 @@ else
 endif
 
 ifeq ($(PROC),ppc)
-    CONFIG_CFLAGS += -DWORDS_BIGENDIAN=1
+    CONFIG_CFLAGS += -DWORDS_BIGENDIAN=1 -DCPU_IS_LITTLE_ENDIAN=0
 else
-    CONFIG_CFLAGS += -DWORDS_BIGENDIAN=0
+    CONFIG_CFLAGS += -DWORDS_BIGENDIAN=0 -DCPU_IS_LITTLE_ENDIAN=1
 endif
 
 ifeq ($(OS),Linux)