From d7135aadd63ede61ce6cf4745946375e86a95aa0 Mon Sep 17 00:00:00 2001
From: Eric Warmenhoven <eric@warmenhoven.org>
Date: Sun, 20 Oct 2024 22:35:27 -0400
Subject: [PATCH] tvos: properly set min supported version

---
 Makefile.libretro | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Makefile.libretro b/Makefile.libretro
index 52ab93d..a03bdd8 100644
--- a/Makefile.libretro
+++ b/Makefile.libretro
@@ -179,6 +179,9 @@ endif
 
    CC = cc -arch arm64 -isysroot $(IOSSDK)
    CXX = c++ -arch arm64 -isysroot $(IOSSDK)
+   MINVERSION = -mappletvos-version-min=11.0
+   LDFLAGS += $(MINVERSION)
+   FLAGS += $(MINVERSION)
 
 # QNX
 else ifeq ($(platform), qnx)