From dd3f2509499e0e6aac4ebf8dab72b5d496c5bfbc Mon Sep 17 00:00:00 2001
From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Mon, 15 Sep 2025 22:38:04 +0200
Subject: [PATCH] Don't link with unnecessary and now removed AGL framework

This framework has apparently been deprecated since quite some time and
was removed from macOS 26, so linking with it resulted in an error.

Don't do this any longer.

Closes #25798.

Upstream-Status: Backport [https://github.com/wxWidgets/wxWidgets/commit/dd3f2509499e0e6aac4ebf8dab72b5d496c5bfbc]
--- ext/wxWidgets/configure.orig	2025-05-25 19:15:56
+++ ext/wxWidgets/configure	2026-01-30 09:15:53
@@ -32397,7 +32397,7 @@
 
 
     if test "$wxUSE_OSX_COCOA" = 1; then
-        OPENGL_LIBS="-framework OpenGL -framework AGL"
+        OPENGL_LIBS="-framework OpenGL"
     elif test "$wxUSE_MSW" = 1; then
         OPENGL_LIBS="-lopengl32 -lglu32"
     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_QT" = 1; then
