mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2025-01-14 12:19:06 +01:00
Add OSX version minor detection in Makefile
This commit is contained in:
parent
4854241606
commit
011cc39a19
@ -54,18 +54,27 @@ else ifeq ($(platform), osx)
|
|||||||
fpic := -fPIC
|
fpic := -fPIC
|
||||||
SHARED := -dynamiclib -lz
|
SHARED := -dynamiclib -lz
|
||||||
ifneq ($(arch),ppc)
|
ifneq ($(arch),ppc)
|
||||||
fpic += -mmacosx-version-min=10.6
|
|
||||||
ENDIANNESS_DEFINES := -DLSB_FIRST
|
ENDIANNESS_DEFINES := -DLSB_FIRST
|
||||||
endif
|
endif
|
||||||
PLATFORM_DEFINES := -DHAVE_ZLIB
|
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)
|
else ifeq ($(platform), ios)
|
||||||
TARGET := $(TARGET_NAME)_libretro_ios.dylib
|
TARGET := $(TARGET_NAME)_libretro_ios.dylib
|
||||||
fpic := -fPIC
|
fpic := -fPIC
|
||||||
SHARED := -dynamiclib -lz
|
SHARED := -dynamiclib -lz
|
||||||
ENDIANNESS_DEFINES := -DLSB_FIRST
|
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)
|
else ifeq ($(platform), qnx)
|
||||||
TARGET := $(TARGET_NAME)_libretro_qnx.so
|
TARGET := $(TARGET_NAME)_libretro_qnx.so
|
||||||
fpic := -fPIC
|
fpic := -fPIC
|
||||||
|
Loading…
x
Reference in New Issue
Block a user