1. wahrhaft
  2. mupen64plus-video-glide64

Commits

ecsv  committed afe335f

Enable big endian mode on ppc and ppc64

  • Participants
  • Parent commits dc787cc
  • Branches default

Comments (0)

Files changed (1)

File projects/unix/Makefile

View file
 #ifneq ("$(filter ppc powerpc,$(HOST_CPU))","")
 #  CPU := PPC
 #  ARCH_DETECTED := 32BITS
+#  BIG_ENDIAN := 1
 #  NO_ASM := 1
 #endif
 #ifneq ("$(filter ppc64 powerpc64,$(HOST_CPU))","")
 #  CPU := PPC
 #  ARCH_DETECTED := 64BITS
+#  BIG_ENDIAN := 1
 #  NO_ASM := 1
 #endif
 ifeq ("$(CPU)","NONE")
   LDFLAGS += -fPIC
 endif
 
+ifeq ($(BIG_ENDIAN), 1)
+  CFLAGS += -DM64P_BIG_ENDIAN
+endif
+
 # tweak flags for 32-bit build on 64-bit system
 ifeq ($(ARCH_DETECTED), 64BITS_32)
   ifeq ($(OS), FREEBSD)