From 9730ca3bdb5f123ed70dccd415d51f2013304afb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 14 Apr 2014 06:37:52 +0200 Subject: [PATCH] (OSX PPC) Add PPC detection --- libretro/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/libretro/Makefile b/libretro/Makefile index 352c35af..89519f1f 100644 --- a/libretro/Makefile +++ b/libretro/Makefile @@ -4,6 +4,10 @@ ifeq ($(platform),) platform = win else ifneq ($(findstring Darwin,$(shell uname -a)),) platform = osx + arch = intel + ifeq ($(shell uname -p),powerpc) + arch = ppc + endif else ifneq ($(findstring MINGW,$(shell uname -a)),) platform = win else ifneq ($(findstring win,$(shell uname -a)),) @@ -21,8 +25,14 @@ ifeq ($(platform), unix) SHARED := -shared -Wl,--version-script=link.T else ifeq ($(platform), osx) TARGET := $(TARGET_NAME)_libretro.dylib - fpic := -fPIC -mmacosx-version-min=10.6 + fpic := -fPIC SHARED := -dynamiclib + +ifeq ($(arch),ppc) + CXXFLAGS += -DBLARGG_BIG_ENDIAN=1 -D__ppc__ +else + fpic += -mmacosx-version-min=10.6 +endif else ifeq ($(platform), ios) TARGET := $(TARGET_NAME)_libretro_ios.dylib fpic := -fPIC