Skip to content

Commit 841cff2

Browse files
Merge remote-tracking branch 'refs/remotes/origin/master'
2 parents effb09e + e5829b6 commit 841cff2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

libretroBuildSystem/Makefile.libretro

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,10 @@ else ifeq ($(platform), osx)
126126
ifeq ($(arch),ppc)
127127
CFLAGS += -D__ppc__ -DMSB_FIRST -DWORDS_BIGENDIAN=1
128128
endif
129-
OSXVER = $(shell sw_vers -productVersion | cut -d. -f 2)
130-
OSX_LT_MAVERICKS = $(shell (( $(OSXVER) <= 9)) && echo "YES")
131-
OSX_GT_MOJAVE = $(shell (( $(OSXVER) >= 14)) && echo "YES")
129+
OSXMAJVER = $(shell sw_vers -productVersion | cut -d. -f 1)
130+
OSXMINVER = $(shell sw_vers -productVersion | cut -d. -f 2)
131+
OSX_LT_MAVERICKS = $(shell (( $(OSXMAJVER) == 10 )) && (( $(OSXMINVER) <= 9)) && echo "YES")
132+
OSX_GT_MOJAVE = $(shell (( $(OSXMAJVER) > 10 )) || (( $(OSXMINVER) >= 14)) && echo "YES")
132133

133134
ifeq ($(OSX_LT_MAVERICKS),"YES")
134135
fpic += -mmacosx-version-min=10.5
@@ -146,7 +147,7 @@ endif
146147
CFLAGS += $(TARGET_RULE)
147148
CPPFLAGS += $(TARGET_RULE)
148149
CXXFLAGS += $(TARGET_RULE)
149-
LDFLAGS += $(TARGET_RULE)
150+
LDFLAGS += $(TARGET_RULE) -lc++
150151
endif
151152

152153
# iOS
@@ -188,6 +189,8 @@ ifeq ($(IOSSDK),)
188189
endif
189190
CC = clang -arch arm64 -isysroot $(IOSSDK)
190191
CXX = clang++ -arch arm64 -isysroot $(IOSSDK)
192+
CC += -mappletvos-version-min=11.0
193+
CFLAGS += -mappletvos-version-min=11.0
191194

192195
# Theos iOS
193196
else ifeq ($(platform), theos_ios)

0 commit comments

Comments
 (0)