From d54274b5deb15c0345387f6153c428e44c8ba703 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 15 Oct 2015 16:29:45 +0200 Subject: [PATCH] Add iOS 9 rules --- Makefile.libretro | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/Makefile.libretro b/Makefile.libretro index a7b9c811..82122325 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -70,7 +70,7 @@ else ifeq ($(platform), osx) SHARED += -mmacosx-version-min=10.1 # iOS -else ifeq ($(platform), ios) +else ifneq (,$(findstring ios,$(platform))) TARGET := $(TARGET_NAME)_libretro_ios.dylib SHARED := -dynamiclib fpic := -fPIC @@ -84,14 +84,18 @@ else ifeq ($(platform), ios) CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -marm ASFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon CFLAGS += -DIOS - OSXVER = `sw_vers -productVersion | cut -d. -f 2` - OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"` - ifeq ($(OSX_LT_MAVERICKS),"YES") - CC += -miphoneos-version-min=5.0 - CXX += -miphoneos-version-min=5.0 - CC_AS += -miphoneos-version-min=5.0 - CFLAGS += -miphoneos-version-min=5.0 - endif + +ifeq ($(platform),ios9) + CC += -miphoneos-version-min=8.0 + CXX += -miphoneos-version-min=8.0 + CC_AS += -miphoneos-version-min=8.0 + CFLAGS += -miphoneos-version-min=8.0 +else + CC += -miphoneos-version-min=5.0 + CXX += -miphoneos-version-min=5.0 + CC_AS += -miphoneos-version-min=5.0 + CFLAGS += -miphoneos-version-min=5.0 +endif ARCH := arm use_cyclone = 0 -- 2.39.5