diff --git a/Makefile.libretro b/Makefile.libretro index 0b1e017..52b45c2 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -74,7 +74,8 @@ else ifeq ($(platform), osx) endif # iOS -else ifeq ($(platform), ios) +else ifneq (,$(findstring ios,$(platform))) + TARGET := $(TARGET_NAME)_libretro_ios.dylib fpic := -fPIC SHARED := -dynamiclib @@ -85,13 +86,14 @@ else ifeq ($(platform), ios) IOSSDK := $(shell xcrun -sdk iphoneos -show-sdk-path) endif - CC = clang -arch armv7 -isysroot $(IOSSDK) - 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 - PLATFORM_DEFINES += -miphoneos-version-min=5.0 - endif + CC = cc -arch armv7 -isysroot $(IOSSDK) +ifeq ($(platform),ios9) + CC += -miphoneos-version-min=8.0 + PLATFORM_DEFINES += -miphoneos-version-min=8.0 +else + CC += -miphoneos-version-min=5.0 + PLATFORM_DEFINES += -miphoneos-version-min=5.0 +endif # Theos else ifeq ($(platform), theos_ios)