Add OSX version minor detection in Makefile

This commit is contained in:
twinaphex 2014-04-26 04:23:30 +02:00
parent 4854241606
commit 011cc39a19

View File

@ -54,18 +54,27 @@ else ifeq ($(platform), osx)
fpic := -fPIC
SHARED := -dynamiclib -lz
ifneq ($(arch),ppc)
fpic += -mmacosx-version-min=10.6
ENDIANNESS_DEFINES := -DLSB_FIRST
endif
PLATFORM_DEFINES := -DHAVE_ZLIB
OSXVER = `sw_vers -productVersion | cut -c 4`
ifneq ($(OSXVER),9)
fpic += -mmacosx-version-min=10.5
endif
else ifeq ($(platform), ios)
TARGET := $(TARGET_NAME)_libretro_ios.dylib
fpic := -fPIC
SHARED := -dynamiclib -lz
ENDIANNESS_DEFINES := -DLSB_FIRST
PLATFORM_DEFINES := -DHAVE_ZLIB -miphoneos-version-min=5.0
PLATFORM_DEFINES := -DHAVE_ZLIB
CC = clang -arch armv7 -isysroot $(IOSSDK) -miphoneos-version-min=5.0
CC = clang -arch armv7 -isysroot $(IOSSDK)
OSXVER = `sw_vers -productVersion | cut -c 4`
ifneq ($(OSXVER),9)
CC += -miphoneos-version-min=5.0
PLATFORM_DEFINES += -miphoneos-version-min=5.0
endif
else ifeq ($(platform), qnx)
TARGET := $(TARGET_NAME)_libretro_qnx.so
fpic := -fPIC