diff --git a/Makefile.libretro b/Makefile.libretro index db398e2..bdd204a 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -17,6 +17,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 @@ -29,6 +33,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 @@ -43,9 +51,12 @@ ifeq ($(platform), unix) PLATFORM_DEFINES := -DHAVE_ZLIB else ifeq ($(platform), osx) TARGET := $(TARGET_NAME)_libretro.dylib - fpic := -fPIC -mmacosx-version-min=10.6 + fpic := -fPIC SHARED := -dynamiclib -lz +ifneq ($(arch),ppc) + fpic += -mmacosx-version-min=10.6 ENDIANNESS_DEFINES := -DLSB_FIRST +endif PLATFORM_DEFINES := -DHAVE_ZLIB else ifeq ($(platform), ios) TARGET := $(TARGET_NAME)_libretro_ios.dylib