mirror of
https://github.com/libretro/beetle-psx-libretro.git
synced 2024-11-27 19:00:35 +00:00
Add OSX version minor detection to Makefile
This commit is contained in:
parent
e376e9c410
commit
14cc23ec4a
20
Makefile
20
Makefile
@ -366,19 +366,29 @@ ifeq ($(arch),ppc)
|
||||
ENDIANNESS_DEFINES := -DMSB_FIRST -DBYTE_ORDER=BIG_ENDIAN
|
||||
OLD_GCC := 1
|
||||
else
|
||||
fpic += -fPIC -mmacosx-version-min=10.6
|
||||
ENDIANNESS_DEFINES := -DLSB_FIRST
|
||||
endif
|
||||
OSXVER = `sw_vers -productVersion | cut -c 4`
|
||||
ifneq ($(OSXVER),9)
|
||||
fpic += -mmacosx-version-min=10.5
|
||||
endif
|
||||
else ifeq ($(platform), ios)
|
||||
TARGET := $(TARGET_NAME)_ios.dylib
|
||||
fpic := -fPIC
|
||||
SHARED := -dynamiclib
|
||||
ENDIANNESS_DEFINES := -DLSB_FIRST
|
||||
LDFLAGS += $(PTHREAD_FLAGS) -miphone-version-min=5.0
|
||||
FLAGS += $(PTHREAD_FLAGS) -miphone-version-min=5.0
|
||||
LDFLAGS += $(PTHREAD_FLAGS)
|
||||
FLAGS += $(PTHREAD_FLAGS)
|
||||
|
||||
CC = clang -arch armv7 -isysroot $(IOSSDK) -miphone-version-min=5.0
|
||||
CXX = clang++ -arch armv7 -isysroot $(IOSSDK) -miphone-version-min=5.0
|
||||
CC = clang -arch armv7 -isysroot $(IOSSDK)
|
||||
CXX = clang++ -arch armv7 -isysroot $(IOSSDK)
|
||||
OSXVER = `sw_vers -productVersion | cut -c 4`
|
||||
ifneq ($(OSXVER),9)
|
||||
LDFLAGS += -miphone-version-min=5.0
|
||||
FLAGS += -miphone-version-min=5.0
|
||||
CC += -miphone-version-min=5.0
|
||||
CXX += -miphone-version-min=5.0
|
||||
endif
|
||||
else ifeq ($(platform), qnx)
|
||||
TARGET := $(TARGET_NAME)_qnx.so
|
||||
fpic := -fPIC
|
||||
|
Loading…
Reference in New Issue
Block a user