X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=Makefile.libretro;h=d92b9adec3603d3a1fa999b54abf79f8d5569b45;hp=9c8a757962168e0afcf7d44fffeb458a2e01298a;hb=db1262095fed1b02260cc4ae4a42cdd31b8ef0a4;hpb=af9db9c89737cb8c4269118c7f0f065b7b68cf8c diff --git a/Makefile.libretro b/Makefile.libretro index 9c8a7579..d92b9ade 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