diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -137,6 +137,7 @@ else ifneq (,$(findstring ios,$(platform))) TARGET := $(TARGET_NAME)_libretro_ios.dylib fpic := -fPIC SHARED := -dynamiclib + MINVERSION := ifeq ($(IOSSDK),) IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path) @@ -151,14 +152,13 @@ else endif ifeq ($(platform),$(filter $(platform),ios9 ios-arm64)) - SHARED += -miphoneos-version-min=8.0 - CC += -miphoneos-version-min=8.0 - CXX += -miphoneos-version-min=8.0 + MINVERSION = -miphoneos-version-min=8.0 else - SHARED += -miphoneos-version-min=5.0 - CC += -miphoneos-version-min=5.0 - CXX += -miphoneos-version-min=5.0 + MINVERSION = -miphoneos-version-min=5.0 endif + SHARED += $(MINVERSION) + CC += $(MINVERSION) + CXX += $(MINVERSION) # tvOS else ifeq ($(platform), tvos-arm64) TARGET := $(TARGET_NAME)_libretro_tvos.dylib @@ -168,6 +168,8 @@ else ifeq ($(platform), tvos-arm64) ifeq ($(IOSSDK),) IOSSDK := $(shell xcodebuild -version -sdk appletvos Path) endif + CFLAGS += -DIOS + CC = cc -arch arm64 -isysroot $(IOSSDK) # Theos iOS else ifeq ($(platform), theos_ios) |