diff options
author | twinaphex | 2014-10-23 09:36:14 +0200 |
---|---|---|
committer | notaz | 2014-12-20 02:57:24 +0200 |
commit | ac86f05170b9b686a016dad0945311326be0cd7a (patch) | |
tree | d83b0af845ad8f1dfc7f68e4da54127cbe4b2d24 /Makefile.libretro | |
parent | 7c830578fdee2aceaf974cba89c5e3a19d62f1cc (diff) | |
download | pcsx_rearmed-ac86f05170b9b686a016dad0945311326be0cd7a.tar.gz pcsx_rearmed-ac86f05170b9b686a016dad0945311326be0cd7a.tar.bz2 pcsx_rearmed-ac86f05170b9b686a016dad0945311326be0cd7a.zip |
libretro: Update Makefile
Conflicts:
Makefile.libretro
Diffstat (limited to 'Makefile.libretro')
-rw-r--r-- | Makefile.libretro | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile.libretro b/Makefile.libretro index 9c8a757..d92b9ad 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -29,8 +29,9 @@ else ifeq ($(platform), osx) TARGET := $(TARGET_NAME)_libretro.dylib fpic := -fPIC SHARED := -dynamiclib -OSXVER = `sw_vers -productVersion | cut -c 4` -ifneq ($(OSXVER),9) + OSXVER = `sw_vers -productVersion | cut -d. -f 2` + OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"` +ifeq ($(OSX_LT_MAVERICKS),"YES") fpic += -mmacosx-version-min=10.5 endif else ifeq ($(platform), ios) @@ -39,6 +40,10 @@ ARCH := arm fpic := -fPIC SHARED := -dynamiclib +ifeq ($(IOSSDK),) + IOSSDK := $(shell xcrun -sdk iphoneos -show-sdk-path) +endif + CC = clang -arch armv7 -isysroot $(IOSSDK) CXX = clang++ -arch armv7 -isysroot $(IOSSDK) CC_AS = perl ./tools/gas-preprocessor.pl $(CC) @@ -48,8 +53,9 @@ ARCH := arm BUILTIN_GPU = neon USE_DYNAREC = 1 CFLAGS += -DIOS -OSXVER = `sw_vers -productVersion | cut -c 4` -ifneq ($(OSXVER),9) + 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 CXX += -miphoneos-version-min=5.0 CC_AS += -miphoneos-version-min=5.0 |