From a5a1a476b1d51367f6ecf036cc498bd1bfe9e71e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 14 Apr 2014 06:21:02 +0200 Subject: [PATCH] (OSX PPC) Add PPC detection --- Makefile.libretro | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile.libretro b/Makefile.libretro index 5d24a60..64d3c87 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -10,6 +10,10 @@ else ifneq ($(findstring MINGW,$(shell uname -a)),) platform = win else ifneq ($(findstring Darwin,$(shell uname -a)),) platform = osx + arch = intel +ifeq ($(shell uname -p),powerpc) + arch = ppc +endif else ifneq ($(findstring win,$(shell uname -a)),) platform = win endif @@ -22,6 +26,10 @@ EXE_EXT = .exe system_platform = win else ifneq ($(findstring Darwin,$(shell uname -a)),) system_platform = osx + arch = intel +ifeq ($(shell uname -p),powerpc) + arch = ppc +endif else ifneq ($(findstring MINGW,$(shell uname -a)),) system_platform = win endif @@ -36,9 +44,12 @@ ifeq ($(platform), unix) ZLIB_DIR := ./src/zlib else ifeq ($(platform), osx) TARGET := $(TARGET_NAME)_libretro.dylib - fpic := -fPIC -mmacosx-version-min=10.6 + fpic := -fPIC SHARED := -dynamiclib +ifneq ($(arch),ppc) + fpic += -mmacosx-version-min=10.6 ENDIANNESS_DEFINES = -DLSB_FIRST -DLOCAL_LE=1 +endif CFLAGS += -DHAVE_ASPRINTF ZLIB_DIR := ./src/zlib else ifeq ($(platform), qnx)