(Libretro) Fix ios9 build

This commit is contained in:
twinaphex 2021-03-15 00:31:17 +01:00 committed by Stephen Anthony
parent df5497e760
commit 395e60890d
1 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ ifneq (,$(findstring unix,$(platform)))
# OS X
else ifeq ($(platform), osx)
CXXFLAGS += $(LTO) $(PTHREAD_FLAGS) -stdlib=libc++
CXXFLAGS += $(LTO) -stdlib=libc++
LDFLAGS += $(LTO) $(PTHREAD_FLAGS) -stdlib=libc++
TARGET := $(TARGET_NAME)_libretro.dylib
fpic := -fPIC
@ -104,7 +104,7 @@ else ifeq ($(platform), osx)
# iOS
else ifneq (,$(findstring ios,$(platform)))
CXXFLAGS += $(LTO) $(PTHREAD_FLAGS) -stdlib=libc++
CXXFLAGS += $(LTO) -stdlib=libc++
LDFLAGS += $(LTO) $(PTHREAD_FLAGS) -stdlib=libc++
TARGET := $(TARGET_NAME)_libretro_ios.dylib
fpic := -fPIC
@ -120,7 +120,7 @@ else ifneq (,$(findstring ios,$(platform)))
CC = cc -arch armv7 -isysroot $(IOSSDK)
CXX = c++ -arch armv7 -isysroot $(IOSSDK)
endif
CXXFLAGS += -DIOS -DARM
CXXFLAGS += -DIOS -DARM -fno-aligned-allocation
ifeq ($(platform),$(filter $(platform),ios9 ios-arm64))
MINVERSION = -miphoneos-version-min=8.0
else
@ -568,7 +568,7 @@ else ifneq (,$(findstring msvc,$(platform)))
CODE_DEFINES =
else
WARNINGS_DEFINES = -Wall -W -Wno-unused-parameter
CODE_DEFINES = -fomit-frame-pointer
CODE_DEFINES =
endif
CXXFLAGS += $(CODE_DEFINES) $(WARNINGS_DEFINES) $(fpic)