diff options
author | twinaphex | 2014-04-26 05:30:46 +0200 |
---|---|---|
committer | notaz | 2014-12-20 02:57:24 +0200 |
commit | c7ed243f7ab63e4fd9c314e148e2f367b17e4f0b (patch) | |
tree | ab530c39ed302729b445a6a7ee2e13adf00b29a7 | |
parent | 291224374dd130c5cbee87ccce40a1cd0d9eb968 (diff) | |
download | pcsx_rearmed-c7ed243f7ab63e4fd9c314e148e2f367b17e4f0b.tar.gz pcsx_rearmed-c7ed243f7ab63e4fd9c314e148e2f367b17e4f0b.tar.bz2 pcsx_rearmed-c7ed243f7ab63e4fd9c314e148e2f367b17e4f0b.zip |
libretro: Add OSX version minor detection to Makefile
Conflicts:
Makefile.libretro
-rw-r--r-- | Makefile.libretro | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/Makefile.libretro b/Makefile.libretro index 88d95dd..1dbacd5 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -27,23 +27,34 @@ ifeq ($(platform), unix) SHARED := -shared -Wl,--version-script=libretro/link.T else ifeq ($(platform), osx) TARGET := $(TARGET_NAME)_libretro.dylib - fpic := -fPIC -mmacosx-version-min=10.6 + fpic := -fPIC SHARED := -dynamiclib +OSXVER = `sw_vers -productVersion | cut -c 4` +ifneq ($(OSXVER),9) + fpic += -mmacosx-version-min=10.5 +endif else ifeq ($(platform), ios) ARCH := arm TARGET := $(TARGET_NAME)_libretro_ios.dylib fpic := -fPIC SHARED := -dynamiclib - CC = clang -arch armv7 -isysroot $(IOSSDK) -miphoneos-version-min=5.0 - CXX = clang++ -arch armv7 -isysroot $(IOSSDK) -miphoneos-version-min=5.0 - CC_AS = perl ./tools/gas-preprocessor.pl $(CC) -miphoneos-version-min=5.0 - CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -marm -miphoneos-version-min=5.0 + CC = clang -arch armv7 -isysroot $(IOSSDK) + CXX = clang++ -arch armv7 -isysroot $(IOSSDK) + CC_AS = perl ./tools/gas-preprocessor.pl $(CC) + CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -marm ASFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon HAVE_NEON = 1 BUILTIN_GPU = neon USE_DYNAREC = 1 - CFLAGS += -DIOS -miphoneos-version-min=5.0 + CFLAGS += -DIOS +OSXVER = `sw_vers -productVersion | cut -c 4` +ifneq ($(OSXVER),9) + 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 else ifeq ($(platform), ps3) TARGET := $(TARGET_NAME)_libretro_ps3.a CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe |