From 377ff11ec9995d2842257daa7edde4e57320512e Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 16 Jun 2024 19:48:55 +0200 Subject: Link frameworks used by recent macOS versions with -weak_framework This allows FLTK apps to use the recent frameworks when they run on recent macOS versions even if the minimum supported macOS version of these apps is more ancient than the framework. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c3089eef5..b508d4573 100644 --- a/configure.ac +++ b/configure.ac @@ -1010,10 +1010,10 @@ AS_CASE([$host_os_gui], [cygwin* | mingw*], [ LIBS="$LIBS -framework Cocoa" macosversion_maj=$(sw_vers -productVersion | cut -d. -f1) AS_IF([test $macosversion_maj -ge 11], [ - LIBS="$LIBS -framework UniformTypeIdentifiers" + LIBS="$LIBS -weak_framework UniformTypeIdentifiers" ]) AS_IF([test $macosversion_maj -ge 15], [ - LIBS="$LIBS -framework ScreenCaptureKit" + LIBS="$LIBS -weak_framework ScreenCaptureKit" ]) AS_IF([test x$have_pthread = xyes], [ -- cgit v1.2.3