From: twinaphex Date: Sat, 26 Apr 2014 02:30:13 +0000 (+0200) Subject: Add OSX version minor detection to Makefile X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05689b390bad4c5739500dd74e4d4c0c7388eb0c;p=picodrive.git Add OSX version minor detection to Makefile --- diff --git a/Makefile.libretro b/Makefile.libretro index 361ae159..87d82723 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -48,20 +48,29 @@ endif ifeq ($(arch),ppc) CFLAGS += -DBLARGG_BIG_ENDIAN=1 -D__ppc__ -DFAMEC_NO_GOTOS -else - SHARED += -mmacosx-version-min=10.6 +endif +OSXVER = `sw_vers -productVersion | cut -c 4` +ifneq ($(OSXVER),9) + SHARED += -mmacosx-version-min=10.5 endif else ifeq ($(platform), ios) TARGET := $(TARGET_NAME)_libretro_ios.dylib SHARED := -dynamiclib APPLE := 1 - 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 + 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 - 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 ARCH := arm