summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-06-16 19:48:55 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-06-16 19:48:55 +0200
commit377ff11ec9995d2842257daa7edde4e57320512e (patch)
treeaf7634ed8539796abb4160a5ef49fcbe9656d709 /configure.ac
parentd137ddfa7d7feee3fda34b41ea28448377c4bd24 (diff)
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.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
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], [