From c5dd945fd056e5c19cd8240c8362c88c0ca73a4d Mon Sep 17 00:00:00 2001
From: Eric Warmenhoven <eric@warmenhoven.org>
Date: Mon, 21 Oct 2024 17:42:16 -0400
Subject: [PATCH] tvos: properly set min supported version (#916)

---
 Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Makefile b/Makefile
index a2484d5ce..8a5a2a588 100644
--- a/Makefile
+++ b/Makefile
@@ -212,6 +212,11 @@ else ifeq ($(platform), tvos-arm64)
 
    CC = cc -arch arm64 -isysroot $(IOSSDK)
    CXX = c++ -arch arm64 -isysroot $(IOSSDK)
+   MINVER = -mappletvos-version-min=11.0
+   LDFLAGS += $(MINVER)
+   FLAGS += $(MINVER)
+   CC += $(MINVER)
+   CXX += $(MINVER)
 
 # QNX
 else ifeq ($(platform), qnx)