X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.libretro;h=0621d18ef23b6ff53168c285fb90f6ed18f3571c;hb=9c79adfd39d78c3b615a7ac0ef4ce472439808ce;hp=450860d83a72d57145779f6de88b626d04a843d1;hpb=5d0bfd318877166df186565fb9a2a940c241a43f;p=pcsx_rearmed.git diff --git a/Makefile.libretro b/Makefile.libretro index 450860d8..0621d18e 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -25,10 +25,18 @@ ifeq ($(platform), unix) TARGET := $(TARGET_NAME)_libretro.so fpic := -fPIC SHARED := -shared -Wl,--version-script=libretro/link.T + BUILTIN_GPU = neon + CFLAGS += -DNEON_PC else ifeq ($(platform), osx) TARGET := $(TARGET_NAME)_libretro.dylib fpic := -fPIC SHARED := -dynamiclib + BUILTIN_GPU = neon + CFLAGS += -DNEON_PC +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 @@ -44,6 +52,13 @@ ARCH := arm BUILTIN_GPU = neon USE_DYNAREC = 1 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 @@ -124,6 +139,8 @@ else LD_FLAGS := -fPIC SHARED := -shared -static-libgcc -static-libstdc++ -s -Wl,--version-script=libretro/link.T CFLAGS += -D__WIN32__ -D__WIN32_LIBRETRO__ + BUILTIN_GPU = neon + CFLAGS += -DNEON_PC endif CFLAGS += -fPIC @@ -144,11 +161,6 @@ NO_CONFIG_MAK = yes include Makefile -# workaround segfault for this file seen on: -# Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn) -libpcsxcore/new_dynarec/pcsxmem.o: libpcsxcore/new_dynarec/pcsxmem.c - $(CC) -c -o $@ $< $(CPPFLAGS) $(CFLAGS) -Os - # no special AS needed for gpu_neon plugins/gpu_neon/psx_gpu/psx_gpu_arm_neon.o: plugins/gpu_neon/psx_gpu/psx_gpu_arm_neon.S $(CC) $(CFLAGS) -c $^ -o $@