From dec4acca9a2e06b565415d7be44506baa0a0fee0 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sun, 12 Apr 2015 01:23:01 +0200 Subject: PPC: Fix cross-endian builds. --- src/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index d7539fd5..903beedd 100644 --- a/src/Makefile +++ b/src/Makefile @@ -221,6 +221,11 @@ ifneq (,$(findstring LJ_TARGET_ARM64 ,$(TARGET_TESTARCH))) TARGET_LJARCH= arm64 else ifneq (,$(findstring LJ_TARGET_PPC ,$(TARGET_TESTARCH))) + ifneq (,$(findstring LJ_LE 1,$(TARGET_TESTARCH))) + TARGET_ARCH= -DLJ_ARCH_ENDIAN=LUAJIT_LE + else + TARGET_ARCH= -DLJ_ARCH_ENDIAN=LUAJIT_BE + endif TARGET_LJARCH= ppc else ifneq (,$(findstring LJ_TARGET_MIPS ,$(TARGET_TESTARCH))) -- cgit v1.2.3-55-g6feb